StandartFirmata Hans-Christoph Steiner Problem

Hey Guys
Im about to read the values get on my arduno Pins into Pure Data.
MomentallyI try to link Arduino in Pd with Pduino.
have Problems Uploading the Example Standart Firmata.
The error report s quite huge and i am new in porgramming so i cant really say how complex the problem even is.
Someone has an idea what might be the or a point?
Cheers Tupac :slight_smile:

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In function 'void sendValueAsTwo7bitBytes(int)':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:32:35: error: 'BYTE' was not declared in this scope

Serial.print(value & B01111111, BYTE); // LSB

^

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In function 'void startSysex()':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:38:29: error: 'BYTE' was not declared in this scope

Serial.print(START_SYSEX, BYTE);

^

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In function 'void endSysex()':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:43:27: error: 'BYTE' was not declared in this scope

Serial.print(END_SYSEX, BYTE);

^

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In member function 'void FirmataClass::printVersion()':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:82:32: error: 'BYTE' was not declared in this scope

Serial.print(REPORT_VERSION, BYTE);

^

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In member function 'void FirmataClass::printFirmwareVersion()':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:104:35: error: 'BYTE' was not declared in this scope

Serial.print(REPORT_FIRMWARE, BYTE);

^

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In member function 'void FirmataClass::sendAnalog(byte, int)':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:270:46: error: 'BYTE' was not declared in this scope

Serial.print(ANALOG_MESSAGE | (pin & 0xF), BYTE);

^

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In member function 'void FirmataClass::sendDigitalPort(byte, int)':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:301:53: error: 'BYTE' was not declared in this scope

Serial.print(DIGITAL_MESSAGE | (portNumber & 0xF),BYTE);

^

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp: In member function 'void FirmataClass::sendSysex(byte, byte, byte*)':

C:\Program Files (x86)\Arduino\libraries\Firmata\Firmata.cpp:311:25: error: 'BYTE' was not declared in this scope

Serial.print(command, BYTE);

^

exit status 1
Fehler beim Kompilieren für das Board Arduino Nano.

What version of the IDE are you using? My version of Firmata.cpp contains:

/**
 * Split a 16-bit byte into two 7-bit values and write each value.
 * @param value The 16-bit value to be split and written separately.
 */
void FirmataClass::sendValueAsTwo7bitBytes(int value)
{
  FirmataStream->write(value & B01111111); // LSB
  FirmataStream->write(value >> 7 & B01111111); // MSB
}

starting on line 30. Line 32 is a comment. There are no uses of BYTE in the function.