rm-hull / luma.examples

Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.emulator display drivers.
MIT License
367 stars 140 forks source link

OLED SSD1306 #135

Closed ruozhiertong closed 3 years ago

ruozhiertong commented 3 years ago

My situation: Pi 4B with2020-08-20-raspios-buster-armhf , Python3, 0.9 inch OLED with SSD1306. When i run : python3 demo.py There is an error: demo.py: error: Invalid/unsupported framebuffer: /dev/fd0. How to fix the error? Thx.

rm-hull commented 3 years ago

python3 demo.py -d ssd1306

rm-hull commented 3 years ago

There was a regression in luma.core that caused this.. it should default to SSD1306, I will apply a fix now

rm-hull commented 3 years ago

luma.core 2.0.2 released with a fix for this