Closed
Description
Trying to run any of the SPI examples, I get:
>>> spi = busio.SPI(clock=board.SCK, MOSI=board.MOSI, MISO=board.MISO)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SCK'
Changing this to:
spi = busio.SPI(clock=board.D3, MOSI=board.D4, MISO=board.D2)
makes it work, but then I have to write board-specific code.