Jul-27-2018, 03:31 PM
I am not positive but there should be something like getch() function. So you could say:
char = getch() if (char == '1'): io.output(motor1_in1_pin, True) if (char == '2'): io.output(motor1_in1_pin, False)Then again I have never used a Raspberry Pi before.