Last active
July 31, 2024 05:36
-
-
Save jacksonkeating/7e1b3e50714329aa65111216fdcacd46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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