add ability to configure display rotation

This commit is contained in:
liamcottle
2025-01-07 00:06:36 +13:00
parent f73fe58b14
commit 880b4a1126
2 changed files with 64 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ class RNode {
ROM_UNLOCK_BYTE = 0xF8;
CMD_HASHES = 0x60;
CMD_FW_UPD = 0x61;
CMD_DISP_ROT = 0x67;
CMD_BT_CTRL = 0x46;
CMD_BT_PIN = 0x62;
@@ -750,6 +751,13 @@ class RNode {
return new ROM(rom);
}
async setDisplayRotation(rotation) {
await this.sendKissCommand([
this.CMD_DISP_ROT,
rotation & 0xFF,
]);
}
}
class ROM {