I am using a WiPy to read a TCS34725 colour sensor.
When I run the code as snippets from the REPL, the readings are rock solid. But when the same code is running within main.py the sensor readings are drifting (significantly and predictably).
It is a long shot, but is there any fundamental reason there might be a difference?
https://forums.adafruit.com/viewtopic.p ... 68#p573868
Difference between code in REPL and in main.py
Re: Difference between code in REPL and in main.py
I would say that timing can make a difference -- perhaps waiting longer between readings makes the sensor work better?