I'm getting an error (see below) when verifying, any help or guidance would be appreciated.
C:\Users\pwmcg\AppData\Local\Temp\ccNTOcr5.ltrans0.ltrans.o: In function main': C:\Users\pwmcg\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino/main.cpp:43: undefined reference to setup'
collect2.exe: error: ld returned 1 exit status
Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE
//DEFINITIONS #define ENABLE_PULLUPS
//#define NUMROTARIES ? //replace "?" with number of rotary encoders you are using #define NUMBUTTONS 6 //replace "?"with number of buttong you are using #define NUMROWS 2 //replace "?" with number of rows you have #define NUMCOLS 3 //replace "?" with number of columns you have
//BUTTON MATRIX
//first change number of rows and columns to match your button matrix,
//then replace all "?" with numbers (starting from 0)
byte buttons[NUMROWS][NUMCOLS] = {
{0,1,2},
{3,4,5}
};
//BUTTON MATRIX PART 2
byte rowPins[NUMROWS] = {2,3}; //change "?" to the pins the rows of your button matrix are connected to
byte colPins[NUMCOLS] = {A0,A1,A2}; //change "?" to the pins the rows of your button matrix are connected to
You deleted that parts that are not used, but you deleted a little too much. As UKHeliBob already noticed, the "setup()" function is missing. And I think that a Joystick object needs to be declared and initialized.
Can you explain what the project is ? How many buttons, leds and so on.
Do you want your Arduino board to emulate a joystick or do you want to read a joystick or don't you use a joystick at all ? Which Arduino board do have ?