Redirecttousb (#604)

* add block to redirect back to USB

* added docs

* bump minor version
This commit is contained in:
Peli de Halleux
2017-12-14 06:44:48 -08:00
committed by GitHub
parent caa563ee30
commit b45f456736
9 changed files with 44 additions and 4 deletions

View File

@ -419,6 +419,7 @@
"serial.readUntil": "Reads a line of text from the serial port and returns the buffer when the delimiter is met.",
"serial.readUntil|param|delimiter": "text delimiter that separates each text chunk",
"serial.redirect": "Dynamically configuring the serial instance to use pins other than USBTX and USBRX.",
"serial.redirectToUSB": "Redirects the serial instance to USBTX and USBRX.",
"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",

View File

@ -339,6 +339,7 @@
"serial.readLine|block": "serial|read line",
"serial.readString|block": "serial|read string",
"serial.readUntil|block": "serial|read until %delimiter=serial_delimiter_conv",
"serial.redirectToUSB|block": "serial|redirect to USB",
"serial.redirect|block": "serial|redirect to|TX %tx|RX %rx|at baud rate %rate",
"serial.writeBuffer|block": "serial|write buffer %buffer",
"serial.writeLine|block": "serial|write line %text",