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:39] – [Pinout] 10.255.0.2 | adafruit_feather_stm32f405_express [2023/03/19 21:35] (Version actuelle) – [USART] 192.168.19.1 | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
Carte de développement au Adafruit comprenant un micro-contrôleur STM32F405. | Carte de développement au Adafruit comprenant un micro-contrôleur STM32F405. | ||
+ | {{:: | ||
===== Pinout ===== | ===== Pinout ===== | ||
Ligne 10: | Ligne 11: | ||
^ Pin label ^ Names ^ Use ^ Alternate Use | | ^ Pin label ^ Names ^ Use ^ Alternate Use | | ||
- | | RST | Reset | test2 | test2 | | + | | RST | Reset | xx | xx | |
- | | 3.3 | 3.3V | + | | 3.3 | 3.3V |
- | | 3.3 | 3.3V | + | | 3.3 | 3.3V |
- | | GND | Ground | + | | GND | Ground |
- | | A0 | xx | + | | A0 |
- | | A1 | xx | + | | A1 |
- | | A2 | xx | + | | A2 |
- | | A3 | xx | + | | A3 |
- | | A4 | xx | + | | A4 |
- | | A5 | xx | + | | A5 |
- | | SCK | SCK / GPIO23 / PB13 | test2 | I2S2 Clock, CAN2 TX | | + | | SCK | SCK / GPIO23 / PB13 | xx | I2S2 Clock, CAN2 TX | |
- | | MO | MOSI / GPIO25 / PB15 | test2 | I2S2 SD | | + | | MO | MOSI / GPIO25 / PB15 | xx | I2S2 SD | |
- | | MI | MISO / GPIO24 / PB14 | test2 | I2S2ext SD | | + | | MI | MISO / GPIO24 / PB14 | xx | I2S2ext SD | |
- | | RX | RX / GPIO 0 / PB11 | + | | RX | RX / GPIO 0 / PB11 |
- | | TX | TX / GPIO 1 / PB10 | + | | TX | TX / GPIO 1 / PB10 |
- | | B0 | xx | + | | B0 | xx |
- | | Bat | xx | + | | Bat | xx |
- | | En | xx | + | | En | xx |
- | | USB | xx | + | | USB | xx |
| 13 | GPIO 13 / PC1 | Connected to the red LED next to the USB jack | No PWM or alternate uses | | | 13 | GPIO 13 / PC1 | Connected to the red LED next to the USB jack | No PWM or alternate uses | | ||
- | | 12 | GPIO 12 / PC2 | test2 | I2S2ext SD, SPI2 MISO | | + | | 12 | GPIO 12 / PC2 | xx | I2S2ext SD, SPI2 MISO | |
- | | 11 | GPIO 11 / PC3 | test2 | I2S2 SD, SPI2 MOSI | | + | | 11 | GPIO 11 / PC3 | xx | I2S2 SD, SPI2 MOSI | |
- | | 10 | GPIO 10 / PB9 | test2 | CAN1 TX, I2C1 SDA | | + | | 10 | GPIO 10 / PB9 | xx | CAN1 TX, I2C1 SDA | |
- | | 9 | GPIO 9 / PB8 | + | | 9 | GPIO 9 / PB8 |
- | | 6 | GPIO 6 / PC6 | + | | 6 | GPIO 6 / PC6 |
- | | 5 | GPIO 5 / PC7 | + | | 5 | GPIO 5 / PC7 |
- | | SCL | SCL / GPIO 15 / PB6 | test2 | USART1 TX, CAN2 TX | | + | | SCL | SCL / GPIO 15 / PB6 | xx | USART1 TX, CAN2 TX | |
- | | SDA | SDA / GPIO 14 / PB7 | test2 | 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 43: | 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.1617453558.txt.gz · Dernière modification : 2021/04/03 14:39 de 10.255.0.2