Pins
Re: Pins
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
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
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
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
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: Pins
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!
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
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.
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.