feat: add reset options

resolves #70
This commit is contained in:
2023-12-29 15:04:33 +01:00
parent a3857843d6
commit f2f61f32f2
6 changed files with 136 additions and 0 deletions

View File

@@ -318,6 +318,13 @@ export class CharaDevice {
await this.send("RST BOOTLOADER")
}
/**
* Resets the device
*/
async reset(type: "FACTORY" | "PARAMS" | "KEYMAPS" | "STARTER" | "CLEARCML" | "FUNC") {
await this.send(`RST ${type}`)
}
/**
* Returns the current number of bytes available in SRAM.
*