adding missing writeline function (#1667)
* adding missing writeline function * 1.2.12
This commit is contained in:
1 parent
5d5b348757
commit
7b2b502a57
3 files changed
+63
No files matched your search
@@ -24,6 +24,16 @@ namespace bluetooth {
|
||||
console.log("UART Write: " + data)
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes to the Bluetooth UART service buffer. From there the data is transmitted over Bluetooth to a connected device.
|
||||
*/
|
||||
//% help=bluetooth/uart-write-line weight=79
|
||||
//% blockId=bluetooth_uart_line block="bluetooth uart|write line %data" blockGap=8
|
||||
//% parts="bluetooth" advanced=true
|
||||
export function uartWriteLine(data: string): void {
|
||||
uartWriteString(data + "\r\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints a numeric value to the serial
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user