Raspberry Pico with Monochrome SH1106 Display Driver

Raspberry Pico with Monochrome SH1106 Display Driver
Since I could not find any help with getting LVGL 9.2 up and running on a Raspberry Pico, I’ll share what I’ve gotten so far.

Repository: sdwood68/Pico_lvgl: Raspberry Pico with LVGL
Processor: RP2040
Display: Generic 128x64 monochrome OLED display with SH1106 chip and I2C interface
IDE: Visual Studio code 1.98.2
LVGL: v9.2
OS: None

What I’ve accomplished:

  • I’m able to display “Hello World”

To Do:

  • Add button scanning routine to control UI
  • Develop a basic UI

Thank you for sharing it!

Can’t figure out how to edit the first post to update my progress, so I’m adding it in the replies.

What I’ve accomplished:

  • Custom font for better look on the display
  • LVGL Menu with a title and 5 menu items.
  • Event call back for the menu allows scrolling through the menu items with up / down arrow keys.
  • Values associated with each item can be changed with the right / left arrow key.
  • Dynamically update the menu items label as the values change.

To Do

  • Learn how to use styles better.
    • Instead of the default style for a focused item in the menu that inverts the background color and text. I want it to just place a box with rounded corners around the focused item.
  • Add a default screen that has two vales that can be updated with the up/down keys for one and left/right keys for the other.
  • Enter the parameter menu on long press of the enter key.
1 Like