Base class for all switches.
std::function< void(bool)> state_lambda_
optional< bool > get_initial_state_with_restore_mode()
Returns the initial state of the switch, after applying restore mode rules.
LVGLSwitch(std::function< void(bool)> state_lambda)
Implementation of SPI Controller mode.
void write_state(bool value) override