mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 02:02:51 +00:00
16 lines
394 B
C++
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
|