mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
[CST816] Add support for Hynitron Microelectronics CST826 capacitive touch (#6682)
This commit is contained in:
parent
5ee4bf3802
commit
91007952e2
2 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,7 @@ void CST816Touchscreen::continue_setup_() {
|
||||||
}
|
}
|
||||||
switch (this->chip_id_) {
|
switch (this->chip_id_) {
|
||||||
case CST820_CHIP_ID:
|
case CST820_CHIP_ID:
|
||||||
|
case CST826_CHIP_ID:
|
||||||
case CST716_CHIP_ID:
|
case CST716_CHIP_ID:
|
||||||
case CST816S_CHIP_ID:
|
case CST816S_CHIP_ID:
|
||||||
case CST816D_CHIP_ID:
|
case CST816D_CHIP_ID:
|
||||||
|
@ -90,6 +91,9 @@ void CST816Touchscreen::dump_config() {
|
||||||
case CST820_CHIP_ID:
|
case CST820_CHIP_ID:
|
||||||
name = "CST820";
|
name = "CST820";
|
||||||
break;
|
break;
|
||||||
|
case CST826_CHIP_ID:
|
||||||
|
name = "CST826";
|
||||||
|
break;
|
||||||
case CST816S_CHIP_ID:
|
case CST816S_CHIP_ID:
|
||||||
name = "CST816S";
|
name = "CST816S";
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -24,6 +24,7 @@ static const uint8_t REG_SLEEP = 0xE5;
|
||||||
static const uint8_t REG_IRQ_CTL = 0xFA;
|
static const uint8_t REG_IRQ_CTL = 0xFA;
|
||||||
static const uint8_t IRQ_EN_MOTION = 0x70;
|
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 CST820_CHIP_ID = 0xB7;
|
||||||
static const uint8_t CST816S_CHIP_ID = 0xB4;
|
static const uint8_t CST816S_CHIP_ID = 0xB4;
|
||||||
static const uint8_t CST816D_CHIP_ID = 0xB6;
|
static const uint8_t CST816D_CHIP_ID = 0xB6;
|
||||||
|
|
Loading…
Reference in a new issue