TiLDA MK3/spi

From EMF Badge
Revision as of 22:45, 7 July 2018 by Chrisstubbs (talk | contribs) (Created page with "See here [https://docs.micropython.org/en/latest/pyboard/library/pyb.SPI.html] for the main micropython documentation. SPI1 is used for the board's onboard wifi. SPI2 is exp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

See here [1] for the main micropython documentation.

SPI1 is used for the board's onboard wifi.

SPI2 is exposed on the 'X' header, under the white silkscreen section for your name.


from pyb import SPI

spi = SPI(2)
spi.init(SPI.MASTER)

spi.send(170) #send int byte
spi.send(b'\xAA') #send hex byte