Displaying Text on SSD1315 OLED module via I2C

Displaying Text on SSD1315 OLED module via I2C

This guide will show you how to display text on OLED module using your MOTION 2350 Pro through I2C on Maker Port or GPIO Breakout.

The figure below shows the available I2C pins on each maker ports.

 

 1. While your MOTION 2350 Pro is connected to your computer, open your editor software (for example Thonny). Select the code.py file in your drive.

2. Connect your OLED module to Maker Port  with GP 26 & GP27 using JST-SH to 4 female pins / grove cable.
OR connect your OLED module to the GPIO breakout using male-to-female jumper wires.

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

4. Flash the codes to your MOTION 2350 Pro. And your CIRCUITPY drive should look like this:

    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.

Hardware Components