EdgePi-Cloud / edgepi-python-sdk

Python SDK to control EdgePi, an industrial PC/PLC/IoT device powered by Raspberry Pi CM4
MIT License
6 stars 3 forks source link

get_led_state reading wrong state #366

Open iaj2 opened 1 year ago

iaj2 commented 1 year ago

Code:

edgepi_led = EdgePiLED()

print(edgepi_led.get_led_state(LEDPins.LED3))

Output: True

The LED is not on but it is reading that it is. Under further investigation it seems that when you explicitly turn on/off the LED and then read the state it gets it right. But I think it should right whether or not you do.