Hi,
I want to send a trigger signal from my computer to the Teensy. I'm using pyserial on the computer. Somehow the Teensy code doesn't respect waiting for the trigger signal.
Code on computer:
Code on Teensy:
The teensy just launches into what's at
This should be an easy problem but something I can't sort it out... any suggestions?
I want to send a trigger signal from my computer to the Teensy. I'm using pyserial on the computer. Somehow the Teensy code doesn't respect waiting for the trigger signal.
Code on computer:
Code:
import serial
ser = serial.Serial("/dev/tty.usbmodem3071981",9600)
ser.write(1);
Code on Teensy:
Code:
if (Serial.available()) {
incomingByte = Serial.read(); // will not be -1
}
// do something
The teensy just launches into what's at
Code:
// do something.
This should be an easy problem but something I can't sort it out... any suggestions?