From 8136e6499c03f601eade290f5f375a849428d72a Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Sat, 25 Oct 2025 23:32:57 +0100 Subject: [PATCH] Make it work or some shit --- footboard.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/footboard.ino b/footboard.ino index de6dbf4..97a0f7d 100644 --- a/footboard.ino +++ b/footboard.ino @@ -1,10 +1,12 @@ + + char n_buttons = 7; char button_pins[] = {0, 1, 2, 3, 4, 5, 6}; char pin_state[] = {HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH}; -char modKey = KEY_LEFT_CTRL; +char modKey = (char) KEY_LEFT_CTRL; -int buttons[7][6] = { +char buttons[7][6] = { {'1'}, {'2'}, {'3'}, @@ -21,7 +23,7 @@ void setup() { for (int i = 0; i < n_buttons; ++i) { pinMode(button_pins[i], INPUT_PULLUP); } - Keyboard.begin() + Keyboard.begin(); } @@ -39,7 +41,7 @@ void loop() { void set_button_state(int button_i, char state) { - int *sequence = buttons[button_i]; + char *sequence = buttons[button_i]; char len = sequence_length[button_i]; if (sequence_length[button_i] == 1) {