Writing an SPI driver for SH1107 Oled display
Posted: Mon Oct 25, 2021 8:30 am
Hello everyone,
I'm new here and to MicroPython. I'm finding many insightful comments here, this forum is great!
I decided to make a first build around a Raspberry Pi Pico, bought some components... and didn't realise that MicroPython drivers were missing for most of them! I've found workarounds for some, but currently my biggest roadblock is the Oled display, a monochrome Waveshare 128x64 display controlled by an SH1107 <edit>that I'd like to keep in SPI mode to avoid fiddling with soldering on the back to switch to I2C</edit>.
Waveshare offers a python driver for it on its wiki, but it relies on spidev (for the SPI version) and other non-MicroPython libraries, I suppose it's aimed at the ARM versions of RPis. I've found several drivers for MicroPython for the SH1106, including discussed on this forum. I've tried restarting from one (from @robert-hh), and adapting it as I could, but although some things have happened on screen, I've not been successful in getting it to work as intented.
Before I bore you with the details of my misfortunes, I should start with a simple question: does anyone know of an SH1107 MicroPython driver out there that I've missed? That would sure be helpful!
I'll throw in another of these questions, just in case: anyone know of a MicroPython driver for the Adafruit AW9523?
Thanks!
I'm new here and to MicroPython. I'm finding many insightful comments here, this forum is great!
I decided to make a first build around a Raspberry Pi Pico, bought some components... and didn't realise that MicroPython drivers were missing for most of them! I've found workarounds for some, but currently my biggest roadblock is the Oled display, a monochrome Waveshare 128x64 display controlled by an SH1107 <edit>that I'd like to keep in SPI mode to avoid fiddling with soldering on the back to switch to I2C</edit>.
Waveshare offers a python driver for it on its wiki, but it relies on spidev (for the SPI version) and other non-MicroPython libraries, I suppose it's aimed at the ARM versions of RPis. I've found several drivers for MicroPython for the SH1106, including discussed on this forum. I've tried restarting from one (from @robert-hh), and adapting it as I could, but although some things have happened on screen, I've not been successful in getting it to work as intented.
Before I bore you with the details of my misfortunes, I should start with a simple question: does anyone know of an SH1107 MicroPython driver out there that I've missed? That would sure be helpful!
I'll throw in another of these questions, just in case: anyone know of a MicroPython driver for the Adafruit AW9523?
Thanks!