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:30] 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 9: Ligne 10:
 La première colonne correspond au label présent sur le pin correspondant de la board.  La première colonne correspond au label présent sur le pin correspondant de la board. 
  
-^ Pin label ^ test1test2 +^ Pin label ^ Names                Use   ^ Alternate Use 
-| RST       RX / GPIO 0  / PB11 test2 +| RST       Reset                xx | xx 
-| 3.3       TX / GPIO 1 / PB10 test2 +| 3.3       3.3V                 | xx xx 
-| 3.3       test1test2 +| 3.3       3.3V                 | xx xx 
-| GND       test1test2 +| GND       Ground               xx | xx 
-| A0        | test1test2 +| A0        | A0 / GPIO 16 / PA4   xx | xx 
-| A1        | test1test2 +| A1        | A1 / GPIO 17 / PA5   | xx xx 
-| A2        | test1test2 +| A2        | A2 / GPIO18 / PA6    | xx xx 
-| A3        | test1test2 +| A3        | A3 / GPIO19 / PA7    xx | xx 
-| A4        | test1test2 +| A4        | A4 / GPIO20 / PC4    xx | xx 
-| A5        | test1test2 +| A5        | A5 / GPIO21 / PC5| xx xx 
-| SCK       test1test2 +| SCK       SCK / GPIO23 / PB13  xx | I2S2 Clock, CAN2 TX 
-| MO        | test1test2 +| MO        | MOSI / GPIO25 / PB15 xx | I2S2 SD 
-| MI        | test1test2 +| MI        | MISO / GPIO24 / PB14 | xx I2S2ext SD 
-| RX        | test1test2 +| RX        | RX / GPIO 0 / PB11   xx | I2C2 SDA 
-| TX        | test1test2 +| TX        | TX / GPIO 1 / PB10   xx | I2C2 SCL 
-| B0        | test1test2 +| B0        | xx                   xx | xx 
-| Bat       test1test2 +| Bat       xx                   xx | xx 
-| En        | test1test2 +| En        | xx                   xx | xx 
-| USB       test1test2 +| USB       xx                   | xx xx 
-| 13        | test1test2 +| 13        | GPIO 13 / PC1        | Connected to the red LED next to the USB jack No PWM or alternate uses 
-| 12        | test1test2 +| 12        | GPIO 12 / PC2        | xx I2S2ext SD, SPI2 MISO 
-| 11        | test1test2 +| 11        | GPIO 11 / PC3        xx | I2S2 SD, SPI2 MOSI 
-| 10        | GPIO 10 / PB9 | test2 +| 10        | GPIO 10 / PB9        xx | CAN1 TX, I2C1 SDA 
-| 9         | GPIO 9 / PB8 | test2 +| 9         | GPIO 9 / PB8         xx | CAN1 RX, I2C1 SCL 
-| 6         | GPIO 6 / PC6 | test2 +| 6         | GPIO 6 / PC6         xx | USART6 TX, I2S2 MCK 
-| 5         | GPIO 5 / PC7 | test2 +| 5         | GPIO 5 / PC7         xx | USART6 RX, I2S3 MCK 
-| SCL       | SCL / GPIO 15 / PB6| test2 +| SCL       | SCL / GPIO 15 / PB6  xx | USART1 TX, CAN2 TX 
-| SDA       | SDA / GPIO 14 / PB7 | test2 |+| 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.1617453030.txt.gz · Dernière modification : 2021/04/03 14:30 de 10.255.0.2