04-12-2020, 02:26 PM
I added your lines, it looks like this now:
But I still don't see anything happening when I press any button
Code:
# Main
while True:
time.sleep(1)
def sw_1_event(channel):
subprocess.call(sw_1_cmd)
print('Executed: ' + sw_1_cmd)
But I still don't see anything happening when I press any button