I have a NodeMCU V3 with SSD1306 OLED 0.96" 6 Pin display. It's already wired up on a PCB so I can't change the pins.
There is an existing CPP app written by someone else. It works but I'd like to make non-trivial changes so I'd rather write it again in Micropython. Everything works but I'm struggling with the display.
The display has GND VCC SCL SDA RES DC pins connected to NodeMCU as follows:
Code: Select all
SCL - D0 - GPIO16
SDA - D3 - GPIO0
RES - D2 - GPIO4
DC - D1 - GPIO5
Code: Select all
// Adafruit_SSD1306(int8_t mosi_pin, int8_t sclk_pin, int8_t dc_pin, int8_t rst_pin, int8_t cs_pin)
display = new Adafruit_SSD1306(D3, D0, D1, D2, -1);
https://github.com/adafruit/Adafruit_SS ... 6.cpp#L253
I have tried to set up SoftSPI and SSD1306 python library but without any success. I don't know how to set up the SoftSPI if there is no miso and how to set up SSD1306 if there is no CS pin
Does anyone know how to set up the SSD1306 display connected using the pinout mentioned above in Micropython?
Many thanks