9void MT6701SPIBinarySensors::loop() {
14 if (!this->
parent_->read_encoder())
17 PUBLISH_STATE(this->push_button_binary_sensor_, (status & 0x04) != 0);
18 PUBLISH_STATE(this->track_loss_binary_sensor_, (status & 0x08) != 0);
21void MT6701SPIBinarySensors::dump_config() {
22 ESP_LOGCONFIG(TAG,
"MT6701 status:\n Update Interval: %" PRIu32
" ms", this->update_interval_);
23 LOG_BINARY_SENSOR(
" ",
"Push button", this->push_button_binary_sensor_);
24 LOG_BINARY_SENSOR(
" ",
"Track loss", this->track_loss_binary_sensor_);