raspberrypi / pico-examples

BSD 3-Clause "New" or "Revised" License
2.65k stars 785 forks source link

Any sample for SSD1306 based OLED display? #31

Open pankaj-nikam opened 3 years ago

pankaj-nikam commented 3 years ago

Hi team, is there any sample for SSD1306 based OLED display? Can you please share? I am looking for 128x32 display. Thanks.

lurch commented 3 years ago

There's an SSD1306 MicroPython example here but I dunno how easy/hard it would be to convert to C. There's some C I2C examples here.

pankaj-nikam commented 3 years ago

Yes, I found that sample and its working nice. I wanted C version because the Python currently does not support machine.RTC.

HeadBoffin commented 3 years ago

The Python example will be driven by C under the hood so you could fish it out of the Micropython source code

mbober1 commented 3 years ago

I ported SSD1306 lib to RP2040. Feel free to use it. https://github.com/mbober1/RPi-Pico-SSD1306-library

pankaj-nikam commented 3 years ago

Thanks for the porting @mbober1 😃

lurch commented 3 years ago

See also https://github.com/raspberrypi/pico-examples/pull/49 :slightly_smiling_face:

lurch commented 2 years ago

I guess this was "fixed" by #130 ? That got merged into https://github.com/raspberrypi/pico-examples/releases/tag/sdk-1.3.0 so take a look at https://github.com/raspberrypi/pico-examples/tree/master/i2c/oled_i2c

mkerna commented 11 months ago

There is an example in the repository at https://github.com/raspberrypi/pico-examples/tree/master/i2c/ssd1306_i2c Please close this issue.