Created
July 17, 2019 17:36
-
-
Save daGrevis/fe1320e2539ce9afc529f51cce656bae 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
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