Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename writeUART -> uartWrite for serial consistency.
  • Loading branch information
microbit-matt-hillsdon committed Jan 3, 2025
commit 06b72481ff4a62d360f6dc47715908576781da94
2 changes: 1 addition & 1 deletion lib/bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export class MicrobitWebBluetoothConnection
return magnetometerService?.triggerCalibration();
}

async writeUART(data: Uint8Array): Promise<void> {
async uartWrite(data: Uint8Array): Promise<void> {
const uartService = await this.connection?.getUARTService();
uartService?.writeData(data);
}
Expand Down
2 changes: 1 addition & 1 deletion src/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const createUARTSection = (): Section => {
{
onclick: async () => {
const encoded = new TextEncoder().encode(dataToWrite);
await bluetoothConnection?.writeUART(encoded);
await bluetoothConnection?.uartWrite(encoded);
},
},
"Write to micro:bit",
Expand Down
Loading