Skip to content

Commit

Permalink
[CST816] Add support for Hynitron Microelectronics CST826 capacitive …
Browse files Browse the repository at this point in the history
…touch (esphome#6682)
  • Loading branch information
lboue authored May 13, 2024
1 parent 5ee4bf3 commit 9100795
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esphome/components/cst816/touchscreen/cst816_touchscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ void CST816Touchscreen::continue_setup_() {
}
switch (this->chip_id_) {
case CST820_CHIP_ID:
case CST826_CHIP_ID:
case CST716_CHIP_ID:
case CST816S_CHIP_ID:
case CST816D_CHIP_ID:
Expand Down Expand Up @@ -90,6 +91,9 @@ void CST816Touchscreen::dump_config() {
case CST820_CHIP_ID:
name = "CST820";
break;
case CST826_CHIP_ID:
name = "CST826";
break;
case CST816S_CHIP_ID:
name = "CST816S";
break;
Expand Down
1 change: 1 addition & 0 deletions esphome/components/cst816/touchscreen/cst816_touchscreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ static const uint8_t REG_SLEEP = 0xE5;
static const uint8_t REG_IRQ_CTL = 0xFA;
static const uint8_t IRQ_EN_MOTION = 0x70;

static const uint8_t CST826_CHIP_ID = 0x11;
static const uint8_t CST820_CHIP_ID = 0xB7;
static const uint8_t CST816S_CHIP_ID = 0xB4;
static const uint8_t CST816D_CHIP_ID = 0xB6;
Expand Down

0 comments on commit 9100795

Please sign in to comment.