Grumpy_Mike:
Liar!No it doesn't, it does not even compile!
digitalWrite (pin [a] HIGH)};Gives the error:-
digitalWrite(pin[a],HIGH);}
Forum_midi: In function 'void setup()':
/Applications/Arduino Old/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy/core_pins.h:24:14: error: expected ')' before numeric constant
#define HIGH 0x1
^
/Users/mikecook/Desktop/Forum_midi/Forum_midi.ino:9:23: note: in expansion of macro 'HIGH'
digitalWrite (pin [a] HIGH)};
^
Forum_midi:9: error: too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'
digitalWrite (pin [a] HIGH)};
^
digitalWrite(pin[a],HIGH);}
The error message continues to sayForum_midi:17: error: 'usbMIDI' was not declared in this scope
To make a USB MIDI device, use the Tools > USB Type menu
usbMIDI.sendNoteOn (7 + i, 127.1);
^
Forum_midi:22: error: 'usbMIDI' was not declared in this scope
To make a USB MIDI device, use the Tools > USB Type menu
usbMIDI.sendNoteOff (7 + i, 127.1);
^
Forum_midi:25: error: expected identifier before '<' token
if (and <9)
^
Forum_midi:29: error: expected ';' before '}' token
else {i = 0};
^
too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'usbMIDI.sendNoteOff(1+i,127,1); Now if you can't be trusted to tell the truth how can you expect anyone to help you? From where I sit your intentions is to jerk us about.
no comma ...
error when copying and pasting on the forum is not a LIE