Hi @Sniper
There are many different dev boards which use the STM32F4xx series cpus.
They each share the same pins for analog, digital, PWM, UART, I2C, SPI etc.
If you can find similar boards with better documentation, some of the info may still be relevant.
All of the pins support digital IO, and some have alternate functions (which may overlap), to provide you with PWM, SPI etc.
Each of the "ports" have 16 IOs. eg. PA0 = Port A, Pin 0. PB15 = Port B, Pin 15.
On the VET6 board, ports A-E are exposed.
On the ZGT6 board, ports A-G are exposed. Physically larger CPU, lots more IOs.
The schematics in the /docs folder on Github, shows which peripheral are specific to this board and which pins they are on.
Also see /mpconfigboard.h for more pin numbers.
It would be nice if there was a pin diagram/infographic which alternate functions were available on which pins.
There are no brand specific sensors for these boards. They are generic STM32 development boards which work with all kinds of sensors.
Some more expensive and brand name boards have a lot more onboard peripherals and support things like sensor shields.
These boards are more bare and expose all of the pins so you can use them as you please.
You can control the pins like this:
Code: Select all
import machine
p = machine.Pin.cpu.PE0
p.init(mode=Pin.OUT)
p.value(0)
p.value(1)
And also like this:
Code: Select all
from machine import Pin
p = Pin('E0', mode=Pin.OUT)
p(0)
p(1)