add function to reset the UART back to USB

This commit is contained in:
Matthias L. Jugel
2017-08-17 18:25:55 +02:00
parent 5c02964085
commit 879615dcc1
6 changed files with 33 additions and 1 deletions

View File

@ -253,6 +253,7 @@
"serial.redirect|param|rate": "the new baud rate. eg: 115200",
"serial.redirect|param|rx": "the new reception pin, eg: SerialPin.P1",
"serial.redirect|param|tx": "the new transmission pins, eg: SerialPin.P0",
"serial.reset": "Reset the serial instance to use the USBTX and USBRX at the default baud rate.",
"serial.writeLine": "Prints a line of text to the serial",
"serial.writeNumber": "Prints a numeric value to the serial",
"serial.writeString": "Sends a piece of text through Serial connection.",

View File

@ -233,6 +233,7 @@
"serial.readString|block": "serial|read string",
"serial.readUntil|block": "serial|read until %delimiter=serial_delimiter_conv",
"serial.redirect|block": "serial|redirect to|TX %tx|RX %rx|at baud rate %rate",
"serial.reset|block": "serial pin reset",
"serial.writeLine|block": "serial|write line %text",
"serial.writeNumber|block": "serial|write number %value",
"serial.writeString|block": "serial|write string %text",