Skip to content

Conversation

@Romaric-RILLET
Copy link

Summary

Use keywords mosi and cs to give pins (machine.Pin) objects to use for mosi ans cs signals.
Teensy 4.1 may use pin D1 or D39 for mosi, pin D0 or D38 for CS0.

Example usage:
spi = SPI(1,cs=Pin.board.D0, miso=Pin.board.D1)

superseded PR#8236

Testing

Tested on Teensy 4.1 board connected to ILI9488 with spi=1, cs=D0, miso=D1

Use keywords mosi and cs to give pins (machine.Pin) objects to use for
mosi ans cs signals.
Teensy 4.1 may use pin D1 or D39 for mosi, pin D0 or D38 for CS0.

Example usage:
spi = SPI(1,cs=Pin.board.D0, miso=Pin.board.D1)

Signed-off-by: Romaric-RILLET <romaric.rillet@gmail.com>
@github-actions
Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:  +548 +0.150% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants