"As of Arduino 1.0, the 'BYTE' keyword is no longer supported"

2,265 views
Skip to first unread message

Roni Mizrahi

unread,
Dec 23, 2011, 11:01:01 AM12/23/11
to Arduinoboy





I just finished assembling my Arduinoboy with a Freeduino SB (a
Duemilanove clone) and after trying to compile the arduinoboy 1.2.2
sketch I get this message:




Arduinoboy1_2_2.cpp: In function 'void sendMemory()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void modeLSDJKeyboard()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void modeLSDJMasterSync()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'boolean checkLSDJStopped()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void sendMidiClockSlaveFromLSDJ()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void modeLSDJMidiout()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void stopNote(byte)':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void playNote(byte, byte)':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void playCC(byte, byte)':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void playPC(byte, byte)':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void stopAllNotes()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void modeLSDJSlaveSync()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void modeMidiGb()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'boolean checkGbSerialStopped()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void modeNanoloopSync()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void programmerSendSettings()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void setProgrammerRequestConnect()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void
programmerSendConnectRequest()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.

Arduinoboy1_2_2.cpp: In function 'void sendMode()':
Arduinoboy1_2_2.pde:-1: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.


I'm stumped. Do I have to go back to all these keywords and change
them? I'd imagine it's not as simple as a "find" and "replace all".

Tony Cosentini

unread,
Dec 23, 2011, 11:24:23 AM12/23/11
to ardui...@googlegroups.com
I forget the exact function, but you just need to replace it with Serial.write().

I did this a week ago, here's the fixed source: http://www.mediafire.com/?h79jpd6rek1n1a2

That should do the trick for you.

-- 
Tony Cosentini

--
You received this message because you are subscribed to the Google Groups "Arduinoboy" group.
To post to this group, send email to ardui...@googlegroups.com.
To unsubscribe from this group, send email to arduinoboy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/arduinoboy?hl=en.

Roni Mizrahi

unread,
Dec 23, 2011, 11:56:04 AM12/23/11
to Arduinoboy

thanks, that saves me a whole lot of trouble. I'd still like to
understand the mechanism and reasons behind this error.

trash80

unread,
Dec 23, 2011, 1:22:05 PM12/23/11
to ardui...@googlegroups.com
I'll update the source soon. It's because of the Arduino 1.0 software they got rid of Serial.print([somehting],BYTE) ... So I have to go back and replace everything.

/Tim

On Fri, Dec 23, 2011 at 8:56 AM, Roni Mizrahi <ihear...@gmail.com> wrote:

thanks, that saves me a whole lot of trouble. I'd still like to
understand the mechanism and reasons behind this error.

trash80

unread,
Dec 23, 2011, 9:00:33 PM12/23/11
to Arduinoboy
Updated the code, it's now on version 1.2.3 and available on the
arduinoboy project page.

/Tim
Reply all
Reply to author
Forward
0 new messages