Skip to content

"SCK in use" error with Metro M4 Express and 2.8 TFT running ili9341_shield_simpletest.py #14

@jpecor

Description

@jpecor

I was trying to recreate a PyPortal bug today with a Metro M4 Express and a 2.8" TFT shield. I grabbed the ili9341_shield_simpletest.py example code and got this error:

code.py output: Traceback (most recent call last): File "code.py", line 17, in <module> ValueError: SCK in use

If I change from this:
spi = board.SPI()

to this (including the import of busio):
spi = busio.SPI(board.D13, board.D11)

the program runs correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions