Skip to content

Trinket M0: No SPI pins in board #213

Closed
@deshipu

Description

@deshipu

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions