Problem using SH1106 driver in Writer class #11037
Unanswered
jimwims
asked this question in
Libraries & Drivers
Replies: 1 comment 3 replies
-
Most probably you supply the wrong type of objects to the driver, like a pin number instead of a pin object. Can you show, how you use the sh1106 driver? It's where you instantiate the sh1106 object. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My board is an Adafruit QT Py ESP32 Pico running MicroPython v1.19.1 and using the Writer class in micropython-font-to-py as informed by micropython-nano-gui. I want to use it with either an ssd1306 display or an sh1106 using the respective drivers on the nano-gui repository.
All goes well with the ssd1306 driver. But with the sh1106 driver, I get the following error:
Traceback (most recent call last): File "main.py", line 18, in <module> File "drivers/sh1106/sh1106.py", line 269, in __init__ AttributeError: 'int' object has no attribute 'init' MicroPython v1.19.1 on 2022-06-18; ESP32 module (spiram) with ESP32
Is there something wrong with the sh1106.py driver? Or have I done something wrong?
Beta Was this translation helpful? Give feedback.
All reactions