adding missing writeline function (#1667)
* adding missing writeline function * 1.2.12
This commit is contained in:
@ -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