adafruit_feather_stm32f405_express
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
adafruit_feather_stm32f405_express [2021/04/03 14:51] – 10.255.0.2 | adafruit_feather_stm32f405_express [2023/03/19 21:35] (Version actuelle) – [USART] 192.168.19.1 | ||
---|---|---|---|
Ligne 39: | Ligne 39: | ||
| SCL | SCL / GPIO 15 / PB6 | xx | USART1 TX, CAN2 TX | | | SCL | SCL / GPIO 15 / PB6 | xx | USART1 TX, CAN2 TX | | ||
| SDA | SDA / GPIO 14 / PB7 | xx | USART1 RX | | | SDA | SDA / GPIO 14 / PB7 | xx | USART1 RX | | ||
+ | |||
+ | |||
+ | ===== LED NeoPixel ===== | ||
+ | |||
+ | La LED NeoPixel est supportée par la librairie Adafruit NeoPixel. Utiliser le pin 8 (Arduino) pour l' | ||
+ | |||
+ | ==== Library / Dépendence ==== | ||
+ | |||
+ | Dans '' | ||
+ | |||
+ | ==== Code typique ==== | ||
+ | |||
+ | <code cpp> | ||
+ | #include < | ||
+ | |||
+ | #define NPX_PIN 8 | ||
+ | |||
+ | Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, | ||
+ | |||
+ | strip.begin(); | ||
+ | |||
+ | uint32_t color = strip.Color(128, | ||
+ | strip.setPixelColor(0, | ||
+ | strip.show(); | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Port STEMMA QT / Qwiic ===== | ||
+ | |||
+ | A la base, c'est une extension I2C (SCL/ | ||
+ | => Wiring, de haut en bas (cf photo début de page) : | ||
+ | * SCL / UART1.TX | ||
+ | * SDA / UART1.RX | ||
+ | * 3.3V | ||
+ | * GND | ||
Ligne 44: | Ligne 79: | ||
IL existe 3 USART sur cette board : | IL existe 3 USART sur cette board : | ||
- | * USART1 RX=" | + | |
- | * USART3 RX=" | + | * USART3 RX=" |
- | * USART6 RX=" | + | * USART6 RX=" |
C'est bien **USART3** qui est utilisé pour le serial USB, et non l' | C'est bien **USART3** qui est utilisé pour le serial USB, et non l' | ||
+ | On utilisera la variable '' | ||
+ | |||
+ | Donc pour utiliser, par exemple, l' | ||
+ | |||
+ | <code cpp> | ||
+ | HardwareSerial ser1 = HardwareSerial(SDA, | ||
+ | HardwareSerial ser6 = HardwareSerial(5, | ||
+ | </ | ||
===== PlatformIO ===== | ===== PlatformIO ===== |
adafruit_feather_stm32f405_express.1617454283.txt.gz · Dernière modification : 2021/04/03 14:51 de 10.255.0.2