I'm trying to upload StandardFirmata sketch on Arduino Yun.
I'm following the tips in this thread Tty for serial port to Arduino from Linino - Arduino Yún - Arduino Forum
- The serial console is disabled in /etc/inittab.
- I've added the following lines in the setup function:
Serial1.begin(9600); // Set the baud.
- Firmata.begin(Serial1);*
- I'm using Arduino IDE 1.5.5-r2.
The errors that I'm getting:
Arduino: 1.5.5-r2 (Windows 8), Board: "Arduino Yún"
StandardFirmata:26: error: redefinition of 'int analogInputsToReport'
StandardFirmata:54: error: 'int analogInputsToReport' previously defined here
StandardFirmata:29: error: redefinition of 'byte reportPINs [4]'
StandardFirmata:57: error: 'byte reportPINs [4]' previously declared here
StandardFirmata:30: error: redefinition of 'byte previousPINs [4]'
StandardFirmata:58: error: 'byte previousPINs [4]' previously declared here
StandardFirmata:33: error: redefinition of 'byte pinConfig [30]'
StandardFirmata:61: error: 'byte pinConfig [30]' previously declared here
StandardFirmata:34: error: redefinition of 'byte portConfigInputs [4]'
StandardFirmata:62: error: 'byte portConfigInputs [4]' previously declared here
StandardFirmata:35: error: redefinition of 'int pinState [30]'
StandardFirmata:63: error: 'int pinState [30]' previously declared here
StandardFirmata:38: error: redefinition of 'long unsigned int currentMillis'
StandardFirmata:66: error: 'long unsigned int currentMillis' previously declared here
StandardFirmata:39: error: redefinition of 'long unsigned int previousMillis'
StandardFirmata:67: error: 'long unsigned int previousMillis' previously declared here
StandardFirmata:40: error: redefinition of 'int samplingInterval'
StandardFirmata:68: error: 'int samplingInterval' previously defined here
StandardFirmata:42: error: redefinition of 'Servo servos [12]'
StandardFirmata:85: error: 'Servo servos [12]' previously declared here
StandardFirmata.pde: In function 'void outputPort(byte, byte, byte)':
StandardFirmata:48: error: redefinition of 'void outputPort(byte, byte, byte)'
StandardFirmata:137: error: 'void outputPort(byte, byte, byte)' previously defined here
StandardFirmata.pde: In function 'void checkDigitalInputs()':
StandardFirmata:62: error: redefinition of 'void checkDigitalInputs()'
StandardFirmata:151: error: 'void checkDigitalInputs()' previously defined here
StandardFirmata.pde: In function 'void setPinModeCallback(byte, int)':
StandardFirmata:89: error: redefinition of 'void setPinModeCallback(byte, int)'
StandardFirmata:178: error: 'void setPinModeCallback(byte, int)' previously defined here
StandardFirmata.pde: In function 'void analogWriteCallback(byte, int)':
StandardFirmata:156: error: redefinition of 'void analogWriteCallback(byte, int)'
StandardFirmata:251: error: 'void analogWriteCallback(byte, int)' previously defined here
StandardFirmata.pde: In function 'void digitalWriteCallback(byte, int)':
StandardFirmata:174: error: redefinition of 'void digitalWriteCallback(byte, int)'
StandardFirmata:269: error: 'void digitalWriteCallback(byte, int)' previously defined here
StandardFirmata.pde: In function 'void reportAnalogCallback(byte, int)':
StandardFirmata:204: error: redefinition of 'void reportAnalogCallback(byte, int)'
StandardFirmata:299: error: 'void reportAnalogCallback(byte, int)' previously defined here
StandardFirmata.pde: In function 'void reportDigitalCallback(byte, int)':
StandardFirmata:216: error: redefinition of 'void reportDigitalCallback(byte, int)'
StandardFirmata:311: error: 'void reportDigitalCallback(byte, int)' previously defined here
StandardFirmata.pde: In function 'void sysexCallback(byte, byte, byte*)':
StandardFirmata:233: error: redefinition of 'void sysexCallback(byte, byte, byte*)'
StandardFirmata:328: error: 'void sysexCallback(byte, byte, byte*)' previously defined here
StandardFirmata.pde: In function 'void setup()':
StandardFirmata:322: error: redefinition of 'void setup()'
StandardFirmata:585: error: 'void setup()' previously defined here
StandardFirmata.pde: In function 'void loop()':
StandardFirmata:368: error: redefinition of 'void loop()'
StandardFirmata:604: error: 'void loop()' previously defined here