Main Menu

search

You are here

OLED program for RP2040

[last updated: 2024-09-15]
RP2040-Zero home page
-----------------------------

https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-microp...
link to forum with same problem I had with ssd1306 library:
https://forum.micropython.org/viewtopic.php?f=15&t=11268

-----------------------------

    For OLED's using the SSD1306 driver:
  • First load the driver:
      with the RP2040 plugged in, open Thonny
      Tools > Manage Packages
      type SSD1306 in the search bar, press enter
      click to select micropython-ssd1306
      click Install
  • import into python program:
      from ssd1306 import SSD1306_I2C
  • Initially I'll use the I2C1 port
    SDA - pin 2
    SCL - pin 3