Skip to content

Wrong pins on sh1106 spi example #31

Closed
@Garfius

Description

@Garfius

Been trying for 2h+, and finally discovered the SPI wiring pins on the comments are wrong.

Instructions goes as (wrong):
` Sample code sections
------------ SPI ------------------
Pin Map SPI

  • 3v - xxxxxx - Vcc
  • G - xxxxxx - Gnd
  • D7 - GPIO 13 - Din / MOSI fixed *1
  • D5 - GPIO 14 - Clk / Sck fixed *2
  • D8 - GPIO 4 - CS (optional, if the only connected device)
  • D2 - GPIO 5 - D/C
  • D1 - GPIO 2 - Res
    `

But only works if you use (right):
`
Pin Map SPI

  • GPIO 11 - Din / MOSI fixed *1
  • GPIO 10 - Clk / Sck fixed *2
    `

Also may include a suggestion to use a logic level adapter, because there are 5v sh1106 displays.

Link to photo of working set, also using lg. lvl. adap. 5v

The mistake is located at:
https://github.com/raspberrypi/pico-micropython-examples/blob/master/i2c/1106oled/sh1106.py

Thanks 4 the great work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions