11 #ifndef __LIGHT_HEADER
12 #define __LIGHT_HEADER
17 #include "../ustd/ard_assert.hpp"
18 #include "../ustd/type_traits.hpp"
34 template<
typename pin_concept,
bool on_state = HIGH>
46 template<
class pin_concept2,
bool on_state2>
64 pin_.write(!on_state);
70 pin_.write((
tool::clock.msec(500) < 250) == on_state);
73 pin_.write((
tool::clock.msec(100) < 10) == on_state);
76 pin_.write((
tool::clock.msec(1000) < 500) == on_state);
83 #define UPDATE(STATE) if(state_ == state::STATE) STATE(); else
113 #endif //__LIGHT_HEADER
light_enum
Definition: light.hpp:22