So I had some code that I downloaded for building a midi controller that used to work. I am trying to piece it back together from bits of other code. One new error I get is when I try and declare an array of analogue controls thusly:
//first define number of Analogue Inputs
#define NUM_AI 9
//then define array
#define ANALOGUE_PIN_ORDER A15, A14, A13, A12, A11, A10, A8, A1, A2
I get an error
Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
MIDI_Controller_good_compiles:177: error: expected primary-expression before ',' token
#define ANALOGUE_PIN_ORDER A15, A14, A13, A12, A11, A10, A8, A1, A2
^
note: in expansion of macro 'ANALOGUE_PIN_ORDER'
byte analogueInputMapping[NUM_AI] = {ANALOGUE_PIN_ORDER};
^
exit status 1
expected primary-expression before ',' token
This used to work, not sure why it is no any more. Strangely, if I take out the "A" before the numbers, it works. Any help would be greatly appreciated.