This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <functional> | |
| #include <unordered_map> | |
| #include <type_traits> | |
| #include <cstdint> | |
| struct Event { | |
| public: | |
| virtual ~Event() = default; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <array> | |
| #include <cstdint> | |
| #include <iostream> // for debugging only | |
| #include <type_traits> | |
| #include <utility> | |
| #include <vector> | |
| // Luple from: https://github.com/alexpolt/luple | |
| template <typename... TT> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include <Servo.h> | |
| #include <string.h> | |
| class ServoMotor { | |
| public: | |
| ServoMotor(int pin, int cw, int stop, int ccw, int delay) | |
| : pin_{ pin }, cw_{ cw }, stop_{ stop }, ccw_{ ccw }, delay_{ delay } {} |