Skip to content

Commit d54c691

Browse files
Rename writeUART -> uartWrite for serial consistency. (#49)
1 parent 067beb6 commit d54c691

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/bluetooth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export class MicrobitWebBluetoothConnection
300300
return magnetometerService?.triggerCalibration();
301301
}
302302

303-
async writeUART(data: Uint8Array): Promise<void> {
303+
async uartWrite(data: Uint8Array): Promise<void> {
304304
const uartService = await this.connection?.getUARTService();
305305
uartService?.writeData(data);
306306
}

src/demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ const createUARTSection = (): Section => {
333333
{
334334
onclick: async () => {
335335
const encoded = new TextEncoder().encode(dataToWrite);
336-
await bluetoothConnection?.writeUART(encoded);
336+
await bluetoothConnection?.uartWrite(encoded);
337337
},
338338
},
339339
"Write to micro:bit",

0 commit comments

Comments
 (0)