Skip to content

Instantly share code, notes, and snippets.

@jacksonkeating
Created December 31, 2023 03:46
Show Gist options
  • Save jacksonkeating/7e1b3e50714329aa65111216fdcacd46 to your computer and use it in GitHub Desktop.
Save jacksonkeating/7e1b3e50714329aa65111216fdcacd46 to your computer and use it in GitHub Desktop.
//prototypes
async function connect(baudRate);
async function readExpect();
async function write(writeValue);
async function disconnect();
//examples
var result: {status: string, data: Uint8Array } = {}
await wavecake.serial.connect(115200);
await wavecake.serial.readExpect();
await wavecake.serial.write('104, 101, 108, 108, 111, 10');
await wavecake.serial.disconnect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment