Go Down

Topic: Pduino firmata and "byte was not declared in this scope" (Read 1 time) previous topic - next topic

Funkigamoses

Hello everyone! I have added the firmata and firmware in the libraries folder (through right clicking on the arduino icon and "show package content".

Now, I have changed "Wboard.h" to "Arduino.h", but then this comes up.



Code: [Select]
Arduino:1.5.8 (Mac OS X), Board: "Arduino Uno"

/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In function 'void sendValueAsTwo7bitBytes(int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:32:35: error: 'BYTE' was not declared in this scope
   Serial.print(value & B01111111, BYTE); // LSB
                                   ^
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In function 'void startSysex()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:38:29: error: 'BYTE' was not declared in this scope
   Serial.print(START_SYSEX, BYTE);
                             ^
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In function 'void endSysex()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:43:27: error: 'BYTE' was not declared in this scope
   Serial.print(END_SYSEX, BYTE);
                           ^
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In member function 'void FirmataClass::printVersion()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:82:32: error: 'BYTE' was not declared in this scope
   Serial.print(REPORT_VERSION, BYTE);
                                ^
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In member function 'void FirmataClass::printFirmwareVersion()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:104:35: error: 'BYTE' was not declared in this scope
     Serial.print(REPORT_FIRMWARE, BYTE);
                                   ^
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In member function 'void FirmataClass::sendAnalog(byte, int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:270:46: error: 'BYTE' was not declared in this scope
   Serial.print(ANALOG_MESSAGE | (pin & 0xF), BYTE);
                                              ^
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In member function 'void FirmataClass::sendDigitalPort(byte, int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:301:53: error: 'BYTE' was not declared in this scope
   Serial.print(DIGITAL_MESSAGE | (portNumber & 0xF),BYTE);
                                                     ^
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp: In member function 'void FirmataClass::sendSysex(byte, byte, byte*)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.cpp:311:25: error: 'BYTE' was not declared in this scope
   Serial.print(command, BYTE);
                         ^
Fel vid kompilering.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.




OS.X 10.6.8

Arduino 1.5.8

Pduino-0.5.3

johnwasser

The  .print(x ,BYTE) was removed in 1.0.  Use .write(x) instead.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

antonvalle

I got further with this, but I'm getting no good connection in Pd-extended. I get a lot of UNKNOWN_INPUT_COMMAND and [arduino]_WARNING_currently_unsupported -messages.

I attached a screen shot to explain things faster.

• Pd 0.43.4-extended
• Arduino UNO R3
• I uploaded SimpleAnalogFirmata with Arduino 1.6.4.
• I tested with either Firmata 2.2 (included in Pduino 0.5 release, http://at.or.at/hans/pd/objects.html#pduino) or Firmata 2.4.3 from Github (https://github.com/firmata/arduino).

Go Up