micropython-nano-gui icon indicating copy to clipboard operation
micropython-nano-gui copied to clipboard

SH1106 support

Open SerinaNya opened this issue 4 years ago • 2 comments
trafficstars

I have a SH1106 OLED screen. Could you add the support of SH1106 drivers?

Here is the code: https://github.com/robert-hh/SH1106

thx! ☺️

SerinaNya avatar Jun 03 '21 09:06 SerinaNya

I am busy on another project at the moment and will be for several weeks. Another difficulty is that it isn't practicable to develop a driver without a display, and there is a limit to how many displays I can buy :)

Converting the driver looks straightforward, the main task being to use inheritance rather than composition for the framebuffer. Perhaps you or @robert-hh might consider doing it and submitting a PR.

peterhinch avatar Jun 03 '21 11:06 peterhinch

Your nano-gui project is very perfect and I believe that you can do it. ☺️
Time isn't a big deal for me. I can wait for several weeks. Could you help me in your spare time?

I don't have enough time to code. I don't have the ability to submit a PR either. And robert-hh don't as familiar with this great project as you.

Besides, you can buy a SH1106 based OLED display from Waveshare Official. I promise that it can work properly because I am using it now.

Here is the pictures of it.

IMG_20210603_204947.jpg IMG_20210603_205030.jpg

Thank you anyway!

SerinaNya avatar Jun 03 '21 13:06 SerinaNya

I have this display and there is a driver that looks like it might work https://github.com/raspberrypi/pico-micropython-examples/blob/master/i2c/1106oled/sh1106.py. I used it here https://joe.blog.freemansoft.com/2023/01/inland-iic-spi-13-128x64-oled-v20.html. The Inland is set up for SPI so I haven't tried it strapped as an I2C

Would you be open to a pull request that included this driver if I test with your examples as an SPI?

freemansoft avatar Feb 11 '23 13:02 freemansoft

Yes.

peterhinch avatar Feb 12 '23 14:02 peterhinch

https://github.com/peterhinch/micropython-nano-gui/pull/48

freemansoft avatar Feb 13 '23 01:02 freemansoft

@jinzhijie You should be able to close this issue. sh1106 support has been added.

freemansoft avatar Feb 14 '23 03:02 freemansoft