The plan is to play audio on RPi when a button is pushed (connected to arduino DIO pins), but at the moment I'm just trying to manipulate the serial data... baby steps
I'm able to read the data with the RPi (print the serial data received) but when I try to analyze it, I get nothing.
Code: Select all
while 1:
x=ser.readline(2)
print x
if x == 25:
print("pushed")