Hi Everyone,
A weird issue I’m having w/ grovePi, raspberry Pi B+… here is:
I’m pulling values from the Analog port A0 (or A1 for that matter, same effect). Everything goes well (it’s a rotary button - values varies from 0 to 1023 consistently with the button rotation).
I now plug a chainable RGB LED (2 of them) on D3 (or D2, tried too) and I output values to the port in a while loop (in order to cycle RGB colors). Suddenly AnalogRead sends back 65535 constantly.
If I stop setting digital ports value, analog reads correctly.
All happens like setting a digital port with
grovepi.chainableRgbLed_pattern(MAIN_LED_PIN, x, y)
disturbs reading on analog ports.
Any help appreciated!
Cheers,
Arnaud