53 friend Singleton<ButtonHandler>;
55 static constexpr uint32_t SAMPLE_PERIOD = 100;
56 static constexpr int LONG_PRESS_TICKS = 10;
57 static constexpr int VERY_LONG_PRESS_TICKS = 50;
104 void periodicButtonValueCheck(miosix::GpioPin pin);
116 std::map<miosix::GpioPin, std::tuple<ButtonCallback, bool, unsigned int>,
The Task Scheduler allow to manage simple tasks with a single thread. All the task added must not tak...
This file includes all the types the logdecoder script will decode.
@ PRESSED
The button is pressed.
@ LONG_PRESS
The button is released before VERY_LONG_PRESS_TICKS.
@ SHORT_PRESS
The button is released before LONG_PRESS_TICKS.
@ VERY_LONG_PRESS
The button is released after VERY_LONG_PRESS_TICKS.
Comparison operator between GpioPins used for std::map.