Hi... I've had a lot of good inputs from people here so far. I previously used a button in this project.. but now that button has been replaced by a keypad. (the event keypad example).
I tried renaming a few variables and altering the code accordingly, but I get some errors when trying to compile. I hope there is a seasoned arduino rat inhere who can take a quick look at it and inform me what the error actaully is, why it is there, and what steps I can take to get rid of it.
Also,
The code is attached here as a file, and the error message I get is. I have a hard time understanding them.
merged.ino: In function 'void debounceSwitches()':
merged.ino:187:36: error: expected ']' before ')' token
merged.ino:187:36: error: invalid conversion from 'char*' to 'uint8_t {aka unsigned char}' [-fpermissive]
In file included from C:\Users\Carsten\Documents\Arduino\libraries\Keypad/utility/Key.h:37:0,
        from C:\Users\Carsten\Documents\Arduino\libraries\Keypad/Keypad.h:36,
        from merged.ino:2:
C:\Users\Carsten\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Arduino.h:127:5: error:Â initializing argument 1 of 'int digitalRead(uint8_t)' [-fpermissive]
int digitalRead(uint8_t);
  ^
Fejl i kompilering.
merged.ino (7.58 KB)