astro-pi / python-sense-hat

Source code for Sense HAT Python library
https://sense-hat.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
510 stars 255 forks source link

WARNING:root:Failed to initialise TCS34725 colour sensor. (sensor not present) #124

Closed DMHas closed 2 years ago

DMHas commented 2 years ago

Hello together,

when I use sense = SenseHat() at the python program, I get this error message:

WARNING:root:Failed to initialise TCS34725 colour sensor. (sensor not present)

The wiring is fine. I read something about #here . But my SenseHat is over 2 years old and it don't should have a colour sensor. Make I a mistake or is this behaviour a mistake of the SenseHat library? (SenseHat V2.40 is installed on my PI 4.)

Best Regards, DMHas

G3zz commented 2 years ago

Hi DMHas, thanks for getting in touch.

This is just a warning and not an error. You can continue to use the library as you have been doing, or if you want to ignore the warning you can change the logger level as has been suggested here: https://github.com/astro-pi/python-sense-hat/issues/121#issuecomment-1179164651.

I'll close this issue now.

DMHas commented 2 years ago

Thanks G3zz for your answer.