sandman1687
New member
Hello all, I've worked with Arduinos in the past, recently got a Teensy 2 for another project I'm working on and I'm having trouble.
When I open up the Serial Monitor, I see serial.print text, but when I send something I get no reaction from the Teensy. Additionally, the window will freeze if I send a few commands, only unfreezing when I reset the device.
When I noticed this error, I wrote this simple program to troubleshoot:
I get the LED indicator, and the Serial Monitor reads "a", but sending something does nothing. Am I missing something? Thanks for your help guys.
When I open up the Serial Monitor, I see serial.print text, but when I send something I get no reaction from the Teensy. Additionally, the window will freeze if I send a few commands, only unfreezing when I reset the device.
When I noticed this error, I wrote this simple program to troubleshoot:
Code:
char cmd = 'a';
void setup() {
Serial.begin(9600);
pinMode(13,OUTPUT);
digitalWrite(13,HIGH);
Serial.print(cmd);
}
void loop() {
}
void serialEvent() {
cmd = Serial.read();
Serial.print(cmd);
}
I get the LED indicator, and the Serial Monitor reads "a", but sending something does nothing. Am I missing something? Thanks for your help guys.