Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
oled.py plugin
#6
(2021 Oct 10, 08:24 PM)dan Wrote: I did a bit of googling on the error and tried

sudo apt install libopenjp2-7
That fixed the problem but then it couldn't find libtiff5 so:

sudo apt install libtiff5
Then I got:

luma.core.error.DeviceNotFoundError: I2C device not found on address: 0x3D

So I guess the plugin won't load unless an oled display is connected to the pi?

Dan

Hi Dan,

I unplug my oled and install SSD1306.py plugin.  The error message is more informative and user friendly:

pi@sip:~/SIP $ sudo python3 sip.py
SSD1306 plugin: LCD initialize...
SSD1306 plugin: Failed to execute sequence. Is the hardware connected and the right address selected?:
[Errno 121] Remote I/O error
SSD1306 plugin: Done (LCD initialize)
....
SSD1306 plugin: active

So I will change my code to give the same kind of alert message.

Paul

(2021 Oct 10, 08:48 PM)dan Wrote: PIL is installed and imports in Python3.

I am running Raspbian GNU/Linux 10 (buster)

There is not an oled display connected to my Pi. I don't have one.

Some plugins have a check box at the top of the setup page to enable plugin functionality. This allows the plugin to load without trying to run and avoids errors from not having required hardware connected. That way a user can access the docs and setup info.

Dan

Okay, I will include this checkbox as well.  This is useful.

Paul
Reply


Messages In This Thread
oled.py plugin - by paul - 2021 Oct 09, 08:41 AM
RE: oled.py plugin - by dan - 2021 Oct 10, 03:56 PM
RE: oled.py plugin - by dan - 2021 Oct 10, 08:24 PM
RE: oled.py plugin - by paul - 2021 Oct 10, 08:56 PM
RE: oled.py plugin - by paul - 2021 Oct 10, 08:25 PM
RE: oled.py plugin - by dan - 2021 Oct 10, 08:48 PM
RE: oled.py plugin - by paul - 2021 Oct 11, 04:20 AM
RE: oled.py plugin - by astrogerard - 2021 Oct 11, 08:30 PM
RE: oled.py plugin - by paul - 2021 Oct 13, 01:52 AM
RE: oled.py plugin - by astrogerard - 2021 Oct 13, 09:32 AM
RE: oled.py plugin - by paul - 2021 Oct 13, 04:22 AM
RE: oled.py plugin - by paul - 2021 Oct 14, 12:28 AM
RE: oled.py plugin - by astrogerard - 2021 Oct 14, 01:28 PM
RE: oled.py plugin - by paul - 2021 Oct 14, 08:22 AM

Forum Jump:


Users browsing this thread: 8 Guest(s)