From 8bb65dafc2cc9225c66fb4850313781570df538b Mon Sep 17 00:00:00 2001 From: Andreas Stadelmeier Date: Tue, 14 Apr 2026 12:50:51 +0200 Subject: [PATCH] Button Mapping --- ExploringUncertanties.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ExploringUncertanties.ino b/ExploringUncertanties.ino index a28a72b..a3df2cb 100644 --- a/ExploringUncertanties.ino +++ b/ExploringUncertanties.ino @@ -18,7 +18,7 @@ CRGB leds[NUM_LEDS]; // Q2: pins D5, D6, D7 → button indices 3, 4, 5 // Q3: pins D8, D9, D10 → button indices 6, 7, 8 // Q4: pins D11,D12,D13 → button indices 9,10,11 -const int BUTTON_PINS[12] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; +const int BUTTON_PINS[12] = {7, 4, 5, 6, 11, 13, 12, 9, 10, 3, 2, 8}; // Reset button on A1 (pin 15). Wiring: connect to GND, use INPUT_PULLUP. const int RESET_PIN = 15; @@ -30,8 +30,8 @@ const int BUTTONS_PER_QUESTION = 3; // For each question, which button index (0, 1, or 2) is correct / half-correct. // The remaining button is automatically wrong. // TODO: update with the actual correct and half-correct buttons for your questions. -const int CORRECT_BUTTON[NUM_QUESTIONS] = {0, 1, 2, 0}; -const int HALF_BUTTON[NUM_QUESTIONS] = {1, 2, 0, 1}; +const int CORRECT_BUTTON[NUM_QUESTIONS] = {0, 0, 0, 0}; +const int HALF_BUTTON[NUM_QUESTIONS] = {1, 3, 1, 1}; enum AnswerType { ANSWER_CORRECT, ANSWER_HALF, ANSWER_WRONG };