adding missing writeline function (#1667)

* adding missing writeline function

* 1.2.12
This commit is contained in:
Peli de Halleux
2018-11-25 21:57:18 -08:00
committed by GitHub
parent 5d5b348757
commit 7b2b502a57
3 changed files with 63 additions and 0 deletions

View File

@ -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
*/