I am trying to use Serial.rts() as a signal from a Windows program to teensy code, like this:
const int LEDpin = 13;
void setup() {
Serial.begin(9600);
pinMode(LEDpin, OUTPUT);
digitalWrite(LEDpin, LOW);
}
void loop() {
digitalWrite(LEDpin, Serial.rts());
}
I expect the LED to come on when the Windows program sets RTS. This doesn't seem to work. For a simple windows program that can set RTS, I am using termite: https://www.compuphase.com/software_termite.htm, using the "status LEDs" plugin. When you click the RTS button in termite, it asserts the RTS line. This works as expected with an FTDI USB to Serial adapter but not on the teensy.
DTR does work as expected with termite and the teensy. If I change the code above to Serial.dtr() and click on the DTR button in termite, the teensy LED responds as expected.
Either I'm missing something, or there's a bug somewhere.
const int LEDpin = 13;
void setup() {
Serial.begin(9600);
pinMode(LEDpin, OUTPUT);
digitalWrite(LEDpin, LOW);
}
void loop() {
digitalWrite(LEDpin, Serial.rts());
}
I expect the LED to come on when the Windows program sets RTS. This doesn't seem to work. For a simple windows program that can set RTS, I am using termite: https://www.compuphase.com/software_termite.htm, using the "status LEDs" plugin. When you click the RTS button in termite, it asserts the RTS line. This works as expected with an FTDI USB to Serial adapter but not on the teensy.
DTR does work as expected with termite and the teensy. If I change the code above to Serial.dtr() and click on the DTR button in termite, the teensy LED responds as expected.
Either I'm missing something, or there's a bug somewhere.