Skip to content

Instantly share code, notes, and snippets.

@daGrevis
Created July 17, 2019 17:36
Show Gist options
  • Save daGrevis/fe1320e2539ce9afc529f51cce656bae to your computer and use it in GitHub Desktop.
Save daGrevis/fe1320e2539ce9afc529f51cce656bae to your computer and use it in GitHub Desktop.
serial.Port.prototype.init = async () => {
try {
console.log(await this.vendorRead( 0x8484))
await this.vendorWrite(0x0404 , 0)
console.log(await this.vendorRead( 0x8484))
await this.vendorWrite(0x0404 , 1)
await this.vendorWrite(0 , 1)
await this.vendorWrite(1 , 0)
await this.vendorWrite(2 , 0x24)
} catch (eee) {
console.log("Error", err)
}
console.log("Done", r)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment