![]() Recommended for applications which change pins while running.Ĭonfigure the serial port to use an alternate receive pin. ![]() It may alsoīe used while the serial port is active. This function may be calledīefore Serial1.begin(baud), to pre-configure the pin used. Teensy LCĪnd 3.x support only specific alternate pins. Is waiting in a buffer to transmit, flush() returns immediately.ĭiscard any received data that has not been read.Ĭonfigure the serial port to use an alternate transmit pin. Wait for any transmitted data still in buffers to actually transmit. In 9 bit mode, the return value is 0 to 511, or -1 if nothing available. set this to the hardware serial port you wish to use #define HWSERIAL Serial1 void setup ( ) Both are monitored for incoming bytes, and when either receives ![]() This simple example shows how to use both the UART and USB Serial at the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |