2021 Oct 10, 08:25 PM
When I unplug my oled device, this is the error message I got:
pi@sip:~/SIP $ sudo python3 sip.py
...
luma.core.error.DeviceNotFoundError: I2C device not found on address: 0x3C
Ignoring exception while loading the oled plug-in.
I2C device not found on address: 0x3C
This is different from what you got. So our software setups are different.
The error message you found is related to Pillow:
https://stackoverflow.com/questions/4801...or-directo
To test if you have pillow installed, see if you can import it in python3:
from PIL import Image
The OS I installed on my rPi is the full 2.8Gb Desktop version (released 2021-05-07) which comes pre-installed with Pil.
Pil has many dependencies.
Which version of raspberry pi OS do you have?
If you give me your version, I can try to reproduce your error.
If PIL is not installed on your system, you can try to install it here:
https://pillow.readthedocs.io/en/stable/...ation.html
I also found a mistake on the wiring instruction in oled-docs.html
original: you need to wire Vcc to either 5V (pins 4 or 6) or 3.3V (pin 1)
correction: you need to wire Vcc to either 5V (pins 2 or 4) or 3.3V (pin 1)
Also "python smbus package" is not required for this plugin, so Hardware instruction # 5 has been removed.
This error is corrected in this attachment.
In the plugin oled.py in the first attachment, I include a switch (gv.sd[u"eod"], eod for "enable oled display") to toggle on and off the oled display in the options page.
This function is now commented out since it entails modifying sd.json, gv.py, webpages.py and options.html.
(In my options page, I have an extra "human-machine interface" section that includes toggles for buzzer, oled_display and gesture_sensor.)
I just found this out when installing afresh the rpi os and re-cloning SIP to troubleshoot the error message you found above.
So oled.py and oled-docs.html need to be updated.
But all files are included for the sake of completeness in the attachment.
pi@sip:~/SIP $ sudo python3 sip.py
...
luma.core.error.DeviceNotFoundError: I2C device not found on address: 0x3C
Ignoring exception while loading the oled plug-in.
I2C device not found on address: 0x3C
This is different from what you got. So our software setups are different.
The error message you found is related to Pillow:
https://stackoverflow.com/questions/4801...or-directo
To test if you have pillow installed, see if you can import it in python3:
from PIL import Image
The OS I installed on my rPi is the full 2.8Gb Desktop version (released 2021-05-07) which comes pre-installed with Pil.
Pil has many dependencies.
Which version of raspberry pi OS do you have?
If you give me your version, I can try to reproduce your error.
If PIL is not installed on your system, you can try to install it here:
https://pillow.readthedocs.io/en/stable/...ation.html
I also found a mistake on the wiring instruction in oled-docs.html
original: you need to wire Vcc to either 5V (pins 4 or 6) or 3.3V (pin 1)
correction: you need to wire Vcc to either 5V (pins 2 or 4) or 3.3V (pin 1)
Also "python smbus package" is not required for this plugin, so Hardware instruction # 5 has been removed.
This error is corrected in this attachment.
In the plugin oled.py in the first attachment, I include a switch (gv.sd[u"eod"], eod for "enable oled display") to toggle on and off the oled display in the options page.
This function is now commented out since it entails modifying sd.json, gv.py, webpages.py and options.html.
(In my options page, I have an extra "human-machine interface" section that includes toggles for buzzer, oled_display and gesture_sensor.)
I just found this out when installing afresh the rpi os and re-cloning SIP to troubleshoot the error message you found above.
So oled.py and oled-docs.html need to be updated.
But all files are included for the sake of completeness in the attachment.