Enviro+ Deprecation Warning

When running the demonstration program lcd.py I get the following error message.

/home/jisaacs/enviroplus-python/examples/luftdaten.py:4: DeprecationWarning: Using “import ST7735” is deprecated. Please “import st7735” (all lowercase)!
import ST7735

When I change the library name the following error happens.

Traceback (most recent call last):
File “/home/jisaacs/enviroplus-python/examples/lcd.py”, line 21, in
disp = ST7735.ST7735(
NameError: name ‘ST7735’ is not defined

Thanks,

Jay

I’d say any reference to ST7735 in the code needs to be changed to st7735. Now that you made the other edit.

disp=st7735,st7735

I think you’ve caught us in the midst of upgrading the library to work with Pi 5/Bookworm - looks to me like the underlying libraries like st7735 have been updated but the updated Enviro examples haven’t been merged into main yet.

pip install st7735==0.0.5 to use the older version of the st7735 library might be a quick fix, or you could try the shiny new stuff by installing following these instructions :)

1 Like

@hel , there are days I’m envious of your job, and then there are days I’m not. ;)
I’m thinking that is a lot of work. =(