Pins

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
wjdp
Posts: 5
Joined: Thu Oct 09, 2014 2:46 pm

Pins

Post by wjdp » Thu Oct 09, 2014 2:51 pm

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?

wjdp
Posts: 5
Joined: Thu Oct 09, 2014 2:46 pm

Re: Pins

Post by wjdp » Thu Oct 09, 2014 6:38 pm

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 :D

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: Pins

Post by blmorris » Thu Oct 09, 2014 7:06 pm

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

Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: Pins

Post by Turbinenreiter » Thu Oct 09, 2014 7:20 pm

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!

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: Pins

Post by blmorris » Thu Oct 09, 2014 7:33 pm

Turbinenreiter wrote:you can also flip the board around.
That would be one obvious thing that I missed...

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Pins

Post by dhylands » Fri Oct 10, 2014 2:15 am

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.

Post Reply