/*
  Arduino | coding-help
  Why do I get this "function not declared in this scope" error?
  ¬NichtBen Thursday, October 16, 2025 11:57 AM
  Hello everyone, I'm still kinda new to Arduino, but I thought
  that I at least knew the basics to work with it for a school
  project of mine, however, when trying t compile my project,
  I just got this Error and I really don't know why:
*/
#include <LedControl.h>
#include "function.h"
const int buttonPin = A5;
LedControl lc = LedControl(12, 11, 10, 1); //DIN, CLK, CS, # of Displays connected
void ssGame() {}
void subwayGame() {}
void setup() {
  Serial.begin(9600);
  randomSeed(analogRead(0));
  lc.shutdown(0, false);
  lc.setIntensity(0, 8);   // brightness 0–15
  lc.clearDisplay(0);
}
void loop() {
  idleAnimation();
  delayCheck(5000, 1000, 505, 328);
  if (inRange(analogRead(buttonPin), 505)) {
    lc.clearDisplay(0);
    delay(3000);
    ssGame();
  }
  else if (inRange(analogRead(buttonPin), 328)) {
    lc.clearDisplay(0);
    delay(3000);
    subwayGame();
  }
}