7 namespace zio_ultrasonic {
9 static const char *
const TAG =
"zio_ultrasonic";
12 ESP_LOGCONFIG(TAG,
"Zio Ultrasonic Sensor:");
14 LOG_UPDATE_INTERVAL(
this);
15 LOG_SENSOR(
" ",
"Sensor:",
this);
23 ESP_LOGE(TAG,
"Error reading data from Zio Ultrasonic");
bool read_byte_16(uint8_t a_register, uint16_t *data)
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
Implementation of SPI Controller mode.