Closed dbenesj closed 2 years ago
Hi, This is just a warning, and not an error - you can still use the library as it was in previous versions Geraint
Aha, I see, thank you. Can this warning be somehow muted?
I'm asking because I'm using the library from the script that is used in crontab (I'm logging values from Sense HAT this way to some online storage). Because of that when there is some output, it sends me an email. Until the upgrade it sends an email only in case of some problem. Which is a nice behavior. With this warning, email is sent with each execution.
Solved by changing the logging level
...
import logging
from sense_hat import SenseHat
logging.getLogger().setLevel(logging.ERROR)
sense = SenseHat()
logging.getLogger().setLevel(logging.WARNING)
...
After the update to version 2.3.1 I'm not any more able initialize the library with the old/original/v1 Sense HAT. It complains that TCS34725 color sensor is not available.
It worked properly before the update to version 2.3.1 (from version 2.2.0)
Is there some way how to tell the library to not try to initiate the color sensor?