Displaying Text on SSD1315 OLED Module via I2C

This guide will show to to use the  SSD1315 OLED module with your Maker Uno RP2040 to display text.

The Maker Uno RP2040 comes with 6 Grove ports and 1 Maker port, making it easy to connect sensors or modules for quick prototyping. In this guide, we'll use both Grove and Maker port to connect the OLED module. The figure below shows the shows the available I2C pins on each grove ports. The Maker port and Grove 6 port shared the same pin connection. 

Grove Port

1. Connect the OLED module to Grove 1 port using a Grove cable or Grove to 4 female pins cable (if the you are using the generic SSD1315 OLED module)

2. While the Maker Uno RP2040 is connected to your computer, open your editor software (for example Thonny). Select the code.py file in your drive.

3. Copy and paste the following code to your editor.

4. Flash the codes to your Maker Uno RP2040. The expected output is that the OLED module will display "Hello World" on the first line and "Yeah!" on the second line. 

    Library file(s) required:
    adafruit_framebuf.mpy, adafruit_ssd1306.mpy
    File(s) required:
    font5x8.bin

If you don't have this file in your computer, download the lib bundle here and search for this file inside the "lib" folder.

 

Maker Port

1. Connect the OLED module to Maker port using a JST SH to Grove cable or JST SH to Female pins cable. 

2. While the Maker Uno RP2040 is connected to your computer, open your editor software (for example Thonny). Select the code.py file in your drive.

3. Copy and paste the following code to your editor.

4. Flash the codes to your Maker Uno RP2040. The expected output is that the OLED module will display "Hello World" on the first line and "Yeah!" on the second line. 

    Library file(s) required:
    adafruit_framebuf.mpy, adafruit_ssd1306.mpy
    File(s) required:
    font5x8.bin

If you don't have this file in your computer, download the lib bundle here and search for this file inside the "lib" folder.

อุปกรณ์ฮาร์ดแวร์

Maker Uno RP2040

THB503.80 THB470.84

x 1 หน่วย