Created
December 31, 2023 03:46
-
-
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 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