ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
espectre_button.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_ESPECTRE
6
8#include "../espectre.h"
9
11
12class RecalibrateButton final : public button::Button, public Parented<ESPectreComponent> {
13 protected:
14 void press_action() override { this->parent_->recalibrate(); }
15};
16
17} // namespace esphome::espectre
18
19#endif // USE_ESPECTRE
Helper class to easily give an object a parent of type T.
Definition helpers.h:1997
Base class for all buttons.
Definition button.h:25