Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Co-authored-by: edenhaus <edenhaus@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick+github@koston.org>
24 lines
614 B
C++
24 lines
614 B
C++
#pragma once
|
|
|
|
#include "esphome/components/micronova/micronova.h"
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/button/button.h"
|
|
|
|
namespace esphome::micronova {
|
|
|
|
class MicroNovaButton : public Component, public button::Button, public MicroNovaBaseListener {
|
|
public:
|
|
MicroNovaButton(MicroNova *m) : MicroNovaBaseListener(m) {}
|
|
void dump_config() override;
|
|
|
|
void set_memory_data(uint8_t f) { this->memory_data_ = f; }
|
|
uint8_t get_memory_data() { return this->memory_data_; }
|
|
|
|
protected:
|
|
void press_action() override;
|
|
|
|
uint8_t memory_data_ = 0;
|
|
};
|
|
|
|
} // namespace esphome::micronova
|