[CST816] Add support for Hynitron Microelectronics CST826 capacitive touch (#6682)

This commit is contained in:
Ludovic BOUÉ 2024-05-13 11:21:06 +01:00 committed by GitHub
parent 5ee4bf3802
commit 91007952e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -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;

View file

@ -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;