Outils pour utilisateurs

Outils du site


adafruit_feather_stm32f405_express

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
adafruit_feather_stm32f405_express [2021/04/03 14:39] – [Pinout] 10.255.0.2adafruit_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. 
  
 +{{::feather_boards_pinouts800.jpg|}}
  
 ===== 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                 test2 test2 +| 3.3       | 3.3V                 xx xx 
-| 3.3       | 3.3V                 test2 test2 +| 3.3       | 3.3V                 xx xx 
-| GND       | Ground               test2 test2 +| GND       | Ground               xx xx 
-| A0        | xx                   test2 | test2 +| A0        | A0 / GPIO 16 / PA4   | xx | xx 
-| A1        | xx                   test2 | test2 +| A1        | A1 / GPIO 17 / PA5   | xx | xx 
-| A2        | xx                   test2 | test2 +| A2        | A2 / GPIO18 / PA6    | xx | xx 
-| A3        | xx                   test2 | test2 +| A3        | A3 / GPIO19 / PA7    | xx | xx 
-| A4        | xx                   test2 | test2 +| A4        | A4 / GPIO20 / PC4    | xx | xx 
-| A5        | xx                   test2 | test2 +| A5        | A5 / GPIO21 / PC5| xx | xx 
-| 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   test2 | I2C2 SDA | +| RX        | RX / GPIO 0 / PB11   xx | I2C2 SDA | 
-| TX        | TX / GPIO 1 / PB10   test2 | I2C2 SCL | +| TX        | TX / GPIO 1 / PB10   xx | I2C2 SCL | 
-| B0        | xx                   test2 test2 +| B0        | xx                   xx xx 
-| Bat       | xx                   test2 test2 +| Bat       | xx                   xx xx 
-| En        | xx                   test2 test2 +| En        | xx                   xx xx 
-| USB       | xx                   test2 test2 |+| USB       | xx                   xx 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         test2 | CAN1 RX, I2C1 SCL | +| 9         | GPIO 9 / PB8         xx | CAN1 RX, I2C1 SCL | 
-| 6         | GPIO 6 / PC6         test2 | USART6 TX, I2S2 MCK | +| 6         | GPIO 6 / PC6         xx | USART6 TX, I2S2 MCK | 
-| 5         | GPIO 5 / PC7         test2 | USART6 RX, I2S3 MCK | +| 5         | GPIO 5 / PC7         xx | USART6 RX, I2S3 MCK | 
-| 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'instanciation. 
 + 
 +==== Library / Dépendence ==== 
 + 
 +Dans ''platformio.ini'', ajouter la lib_dep suivante :  ''adafruit/Adafruit NeoPixel'' 
 + 
 +==== Code typique ==== 
 + 
 +<code cpp> 
 +#include <Adafruit_NeoPixel.h> 
 + 
 +#define NPX_PIN 8 
 + 
 +Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, NPX_PIN, NEO_GRB + NEO_KHZ800); 
 + 
 +strip.begin(); 
 + 
 +uint32_t color = strip.Color(128, 128, 128); 
 +strip.setPixelColor(0, color); 
 +strip.show(); 
 + 
 +</code> 
 + 
 +===== Port STEMMA QT / Qwiic ===== 
 + 
 +A la base, c'est une extension I2C (SCL/SDA/3.3V/GND). Mais comme SCL/SDA peuvent être reparamétrés en RX/TX de l'USART1, ça peut devenir une extension Serial1 !  
 +=> 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="SDA" / TX="SCL"  +  * USART1 RX="SDA" / TX="SCL"  
-* USART3 RX="RX" / TX="TX"  +  * USART3 RX="RX" / TX="TX"  
-* USART6 RX="5" / TX="6" +  * USART6 RX="5" / TX="6" 
  
 C'est bien **USART3** qui est utilisé pour le serial USB, et non l'USART1 ! C'est bien **USART3** qui est utilisé pour le serial USB, et non l'USART1 !
  
 +On utilisera la variable ''SerialUSB''.
 +
 +Donc pour utiliser, par exemple, l'USART1, il suffit de créer un '' HardwareSerial ''  de cette manière : 
 +
 +<code cpp>
 +HardwareSerial ser1 = HardwareSerial(SDA, SCL);
 +HardwareSerial ser6 = HardwareSerial(5,6);
 +</code>
  
 ===== PlatformIO ===== ===== PlatformIO =====
adafruit_feather_stm32f405_express.1617453558.txt.gz · Dernière modification : 2021/04/03 14:39 de 10.255.0.2