pimoroni / automation-hat

Python library and examples for the Pimoroni Automation HAT, pHAT and HAT Mini
https://shop.pimoroni.com/products/automation-hat
MIT License
121 stars 42 forks source link

ADC reads wrong sporadically #1

Closed nkotilainen closed 7 years ago

nkotilainen commented 7 years ago

ADC reads wrong values every now and then. The problem is fixed by disabling the auto LED updating, so I’d guess both the LED update thread and the user thread start an ADC read around the same time, which results in the wrong ADC channel result being returned to one of them.