This commit is contained in:
2026-07-19 16:05:07 -05:00
parent 0d761b048f
commit 59d038efc2
9 changed files with 318 additions and 18 deletions
+6 -1
View File
@@ -26,10 +26,16 @@ enum class Button: uint8_t {
B2 = 1,
B3 = 2,
B4 = 3,
GREEN = 0,
RED = 1,
YELLOW = 2,
BLUE = 3,
LEFT = 0,
DOWN = 1,
UP = 2,
RIGHT = 3,
};
constexpr uint8_t raw_value(Button v) { return static_cast<uint8_t>(v); }
@@ -85,7 +91,6 @@ constexpr char keypad_key_to_char(KeypadKey key) {
return lookup[static_cast<uint8_t>(key) & 0b1111];
}
struct SwitchFlip {
private:
// [bit2: up] [bit1-0: switch]