Python Tutorials – Lesson 10 – OLED Display Module using Raspberry Pi Pico

Print Robolabz in OLED Display using Raspberry Pi Pico

Required Components

  1. OLED Display_1 no
  2. Raspberry Pi Pico board_1 no
  3. Data Cable_1 no
  4. Connecting Wires_8 no

Circuit

Steps

  1. Make sure the components are working properly.
  2. OLED Display board VCC, GND connected to 3V3 (OUT), GND of Raspberry Pi Pico Board.
  3. Connect OLED Display Board SCK, SDA pin to the Raspberry Pi Pico Board GP1, GP0 pin.
  4. Check the Python program.
  5. Check the Electrical Circuit.
  6. Run the Python program.

Python Program

from machine import Pin, I2C
from ssd1306 import SSD1306_I2C

i2c=I2C(0,sda=Pin(0), scl=Pin(1), freq=400000)
oled = SSD1306_I2C(128, 64, i2c)

oled.text("ROBOLABZ", 0, 0)
oled.show()

Leave a Reply

Your email address will not be published. Required fields are marked *