oled screen whit i2c how do i activate it scl=Pin(17), sda=Pin(16))


Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8766
Posted: 08:17am 11 Jun 2025      

VCC, GND, SCK, MOSI and MISO are common to all three. They are three separate devices on the same SPI bus, but each has additional pins for it's own use.

The display requires CS, RESET, DC and LED
The SDcard requires SD_CS
Touch requires T_CS and T_IRQ

You can actually use any combination of the three devices by just connecting the required pins. If you don't want Touch then simply don't connect T_CS or T_IRQ and don't use OPTION TOUCH to configure it.

Additionally, the SDcard can optionally use its own SPI bus or a "bitbanged" SPI that can use any available pins but has slightly lower performance. It may as well share the display SPI though as you only need to supply a pin for SD_CS.

(Not this Mick for the above design. :) )
Edited 2025-06-11 18:18 by Mixtel90