Hey! As stated in the title, I'm trying to make an LED wall that I can switch between different Glediator scenes, saved to an SD card, using 4 different buttons. I've got the electronics working without a hitch, but the programming is biting me in the arse! The below link is the code I've got thus far. The idea is that it loops through 'checkSensor' functions, and depending on the buttons state activates a scene from the 'triggerAnimation' array. I'm having a load of issues with it though and I'm not proficient enough at coding to know how to fix it
These are the error codes I'm getting
AIMmatrix:230:15: error: expected constructor, destructor, or type conversion before ';' token
checkSensor3();
^
AIMmatrix:231:1: error: expected unqualified-id before 'if'
if (sensorState3 == LOW) {
^
exit status 1
expected constructor, destructor, or type conversion before ';' token
Any help would be much appreciated!