Files
esphome/esphome/components/uart/button/uart_button.cpp
T

16 lines
394 B
C++

#include "uart_button.h"
#include "esphome/core/log.h"
namespace esphome::uart {
ESPHOME_LOG_TAG(TAG, "uart.button");
void UARTButton::press_action() {
ESP_LOGD(TAG, "'%s': Sending data", LOG_STR_ARG(this->get_log_name()));
this->write_array_progmem(this->data_, this->data_len_);
}
void UARTButton::dump_config() { LOG_BUTTON("", "UART Button", this); }
} // namespace esphome::uart