Skip to content

Instantly share code, notes, and snippets.

@jacksonkeating
Last active July 31, 2024 05:36
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 readStringUntil(until='\r');
async function writeString(text, ending='\r')
async function disconnect();
//examples
await wavecake.serial.connect(9600)
await wavecake.serial.writeString("Hello World")
result = await wavecake.serial.readStringUntil()
await wavecake.serial.disconnect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment