ESPHome
2026.8.0b4
Loading...
Searching...
No Matches
esphome
components
sendspin
image
automation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/defines.h
"
4
5
#if defined(USE_ESP32) && defined(USE_SENDSPIN_ARTWORK)
6
7
#include "
esphome/core/automation.h
"
8
#include "
sendspin_image.h
"
9
10
namespace
esphome::sendspin_
{
11
12
template
<
typename
... Ts>
13
class
SendspinImageTransitionFinishedAction
final :
public
Action
<Ts...>,
public
Parented
<SendspinImageSlot> {
14
public
:
15
void
play
(
const
Ts &...
x
)
override
{ this->
parent_
->transition_finished(); }
16
};
17
18
}
// namespace esphome::sendspin_
19
20
#endif
esphome::Action
Definition
automation.h:487
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1907
esphome::Parented< SendspinImageSlot >::parent_
SendspinImageSlot * parent_
Definition
helpers.h:1918
esphome::sendspin_::SendspinImageTransitionFinishedAction
Definition
automation.h:13
esphome::sendspin_::SendspinImageTransitionFinishedAction::play
void play(const Ts &...x) override
Definition
automation.h:15
automation.h
defines.h
esphome::sendspin_
Definition
automation.h:10
sendspin_image.h
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0