So in the board python files there's two kinds of pins. There the pin in with the cpu's name like PD15. Then there's the arduino style of naming D13. How do these pythons string match up.
So i ask this because i used the image above to the pinout.
But found that this is how it worked in the code.
P1.15 = D47 and not D13 as it looked like in the MBed pinout.
It is not arduino numbering even if it looks so, it is actually native hardware numbering as port1 means pins 32 and up so d0 = p0.0,d31=p0.31,d32=p1.01,....
It is the same also for most other 52832/52840 boards with no Arduino pin header.
Perfect thank you
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem