Print Robolabz in OLED Display using Raspberry Pi Pico
Required Components
- OLED Display_1 no
- Raspberry Pi Pico board_1 no
- Data Cable_1 no
- Connecting Wires_8 no
Circuit
Steps
- Make sure the components are working properly.
- OLED Display board VCC, GND connected to 3V3 (OUT), GND of Raspberry Pi Pico Board.
- Connect OLED Display Board SCK, SDA pin to the Raspberry Pi Pico Board GP1, GP0 pin.
- Check the Python program.
- Check the Electrical Circuit.
- 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()