Read led status


#1

Hi all,
I’ve connected the led to the digital port 4 and I can set it on and off (RPI2+GrovePI+GroveLED). I would like to read the current led status if it is possible.
Thanks a lot!
Cosmin


#2

Hey,
It won;t be possible to read the state of the LED from the GrovePi. But since you are using a python program on the Raspberry Pi to control the state of the LED, you can keep a variable in the program to save the state locally.

-Karan


#3

Hey Karan,
Thanks for the info and for the suggestion.
This is what I implemented and I was hoping that I’ll get a better handling in the case the status is available.
Best regards,
Cosmin