Skip to content

Commit

Permalink
Fixed CHSC5816 sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Sep 13, 2023
1 parent 8e25474 commit 270d527
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/TouchDrvCHSC5816.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,20 +185,15 @@ class TouchDrvCHSC5816 :
void sleep()
{
uint8_t buffer[16] = {
0xFB, 0x16, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF8, 0x16, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xE9
};
writeRegister(CHSC5816_REG_CMD_BUFF, buffer, 16);
}

void wakeup()
{
//getGesture wakup ?
// uint8_t buffer[16] = {
// 0xFB, 0x16, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xE9
// };
// writeRegister(CHSC5816_REG_CMD_BUFF, buffer, 16);
reset();
}

void idle()
Expand Down

0 comments on commit 270d527

Please sign in to comment.