diff options
author | Geoff Gustafson <geoff@linux.intel.com> | 2017-10-13 08:07:35 -0700 |
---|---|---|
committer | Jimmy Huang <jimmy.huang@linux.intel.com> | 2017-10-19 13:59:35 -0700 |
commit | e29b70002e0610946b14de2fe875d8ababc2817b (patch) | |
tree | 20473055e8af95a138124079ada7e4ea8ca2f7cb /samples/UART.js | |
parent | e6c97523c082b5d1db6a56b3fdcb3b10a81e6a34 (diff) |
[webusb] Add UART support and data APIs to WebUSB
Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
Diffstat (limited to 'samples/UART.js')
-rw-r--r-- | samples/UART.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/samples/UART.js b/samples/UART.js index b5b9ac3..e0e7ffb 100644 --- a/samples/UART.js +++ b/samples/UART.js @@ -1,9 +1,9 @@ // Copyright (c) 2016-2017, Intel Corporation. // Sample to test UART module. This can be run on the Arduino 101 or QEMU. It -// will print out 'UART write succeeded, echoing input.' to the console, then echo back any characters -// that are typed and store the string. If enter is pressed, it will print -// out the saved string and clear it. +// will print out 'UART write succeeded, echoing input.' to the console, then +// echo back any characters that are typed and store the string. If Enter is +// pressed, it will print out the saved string and clear it. // On the Arduino 101, this sample can be used by opening /dev/ttyACMX using // screen or minicom: @@ -38,4 +38,5 @@ uart.on('read', function(data) { uart.write(new Buffer(current + '\r\n')); } }); + uart.write(new Buffer('UART write succeeded, echoing input.\r\n')); |