From 8486714605b0cf70b2f3cb0143c9a28d1fcd82b1 Mon Sep 17 00:00:00 2001 From: gnxlxnxx Date: Mon, 18 Dec 2023 22:50:00 +0100 Subject: [PATCH] baz --- components/empty_i2c_component/empty_i2c_component.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/empty_i2c_component/empty_i2c_component.cpp b/components/empty_i2c_component/empty_i2c_component.cpp index 02b5d6c..48bd6be 100644 --- a/components/empty_i2c_component/empty_i2c_component.cpp +++ b/components/empty_i2c_component/empty_i2c_component.cpp @@ -11,8 +11,9 @@ void EmptyI2CComponent::setup() { } void EmptyI2CComponent::loop() { - uint8_t data = 0x0; - this->write_register(0x0, &data, 0x1); + uint8_t data = 10; + this->read_register(0x0, &data, 0x1); + ESP_LOGI(TAG, "READ value: %d", data); } void EmptyI2CComponent::dump_config(){