Hi,
In previous cec 0.2.6, the following code was working fine. But it is not working now after updating to 0.2.7.
import cec
import time
cec.init()
print("Ready")
def onkey(event, key , state):
if state > 0:
print("Got key", key, "state", state)
cec.add_callback(onkey, cec.EVENT_KEYPRESS)
while True:
time.sleep(9e8)
What changes should I do to make it work again ?
Thanks.