Hi,
I'm dealing with a situation where it would be great to be able to control the "Clear to Send" (CTS) signal of Serial1 using software.
I see I can enable CTS flow control using Serial1.attachCts(pin) where pin can be 18 or 20, but what I'm looking for is something like Serial1.pause() and Serial1.resume(), where after pause() data that is sent to the serial port is just stored in the TX buffer without it actually being sent out yet.
I thought about simply wiring the CTS pin to another pin of the teensy and using a digitalwrite to pause the sending, but I'm already low on pins on this project and this seems kind of a waste of resources.
Any tips would be appreciated!
I'm dealing with a situation where it would be great to be able to control the "Clear to Send" (CTS) signal of Serial1 using software.
I see I can enable CTS flow control using Serial1.attachCts(pin) where pin can be 18 or 20, but what I'm looking for is something like Serial1.pause() and Serial1.resume(), where after pause() data that is sent to the serial port is just stored in the TX buffer without it actually being sent out yet.
I thought about simply wiring the CTS pin to another pin of the teensy and using a digitalwrite to pause the sending, but I'm already low on pins on this project and this seems kind of a waste of resources.
Any tips would be appreciated!