...
This commit is contained in:
@@ -13,7 +13,7 @@ void ShowcaseComponent::setup() {
|
|||||||
void ShowcaseComponent::loop() {
|
void ShowcaseComponent::loop() {
|
||||||
uint8_t data = 10;
|
uint8_t data = 10;
|
||||||
this->read_register(0x0, &data, 0x1);
|
this->read_register(0x0, &data, 0x1);
|
||||||
/* ESP_LOGI(TAG, "READ value: %d", data); */
|
ESP_LOGI(TAG, "READ value: %d", data);
|
||||||
if(data != 0){
|
if(data != 0){
|
||||||
if(data & 1){
|
if(data & 1){
|
||||||
this->write_state(Off);
|
this->write_state(Off);
|
||||||
|
|||||||
Reference in New Issue
Block a user