Page 1 of 1
Pins
Posted: Thu Oct 09, 2014 2:51 pm
by wjdp
I've had a brief scourge around but have come up empty, anyone know of a nice list of the board's pins and capabilities?
Re: Pins
Posted: Thu Oct 09, 2014 6:38 pm
by wjdp
By the time this got aproved I found answer to my own question. On the schematics there is a basic outline of the pins:
http://micropython.org/static/doc/PYBv10b.pdf
Might be nice to get a wiki page going with friendly descriptions of what you can do with each pin. I'm a software guy and getting my head around hardware schematics is tricky

Re: Pins
Posted: Thu Oct 09, 2014 7:06 pm
by blmorris
I'm not aware of a simple list available in the docs, which would be a nice reference to have.
For now (or until someone points out something I have missed) there is the
schematic
You can also use the
pyb.Pin and
pyb.PinAF classes to get a partial list of capabilities, though for some reason the list returned by af_list() leaves out DAC and ADC capabilities.
The most definitive list I am aware of outside of the
STM32F405 data sheet is in the code
at
https://github.com/micropython/micropyt ... 4xx_af.csv
Hope this helps for now.
-Bryan
Re: Pins
Posted: Thu Oct 09, 2014 7:20 pm
by Turbinenreiter
you can also flip the board around.
ADC - Analog-Digital-Converter
SDA/SCL - I2C
MOSI/MISO/SCK/SS - SPI
PWM - Pulse Width Modulation
TX/RX - UART
RST - Reset
GND, VIN, 3V3 - Ground, input voltage, 3.3 Volt output
the docs for the pyb module have the information on how to use those.
also: just ask!
Re: Pins
Posted: Thu Oct 09, 2014 7:33 pm
by blmorris
Turbinenreiter wrote:you can also flip the board around.
That would be one obvious thing that I missed...
Re: Pins
Posted: Fri Oct 10, 2014 2:15 am
by dhylands
There is also a generated file that has the alternate functions - although I also don't see the ADC or DAC mentioned there.
stmhal/build-PYBV10/pins_af.py
This file has the mapping for the board pins (i.e. X1, Y1)
There is a script in the examples folder called pins.py (it needs the generated pins_af.py file) that will show the currently selected function for each pin.