Hello,
Upon interfacing an xbox 360 ChatPad to my arduino(Mega 1280) I ran into a few errors in my code.
"Errors"
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:26:20: error: wiring.h: No such file or directory
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:32: error: ‘byte’ does not name a type
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:33: error: ‘byte’ does not name a type
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:34: error: ‘byte’ does not name a type
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:35: error: ‘byte’ does not name a type
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:38: error: ‘byte’ does not name a type
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:39: error: ‘byte’ does not name a type
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp: In member function ‘void Chatpad::init(HardwareSerial&, void (*)(Chatpad&, Chatpad::keycode_t, Chatpad::eventtype_t))’:
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:49: error: ‘kInitMessage’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp: In member function ‘void Chatpad::poll()’:
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:87: error: ‘byte’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:87: error: expected `;' before ‘modifiers’
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:88: error: expected `;' before ‘key0’
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:89: error: expected `;' before ‘key1’
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:92: error: expected `;' before ‘modifier_changes’
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:93: error: ‘modifier_changes’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:93: error: ‘kShiftMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:94: error: ‘modifiers’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:96: error: ‘modifier_changes’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:96: error: ‘kGreenSquareMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:97: error: ‘modifiers’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:99: error: ‘modifier_changes’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:99: error: ‘kOrangeCircleMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:100: error: ‘modifiers’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:102: error: ‘modifier_changes’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:102: error: ‘kPeopleMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:103: error: ‘modifiers’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:105: error: ‘modifiers’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:108: error: ‘key0’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:111: error: ‘key1’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:114: error: ‘key0’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:114: error: ‘key1’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:117: error: ‘key0’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:117: error: ‘key1’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:120: error: ‘key0’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:121: error: ‘key1’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:124: error: ‘millis’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:127: error: ‘kAwakeMessage’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp: In member function ‘bool Chatpad::isShiftDown() const’:
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:132: error: ‘kShiftMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp: In member function ‘bool Chatpad::isGreenSquareDown() const’:
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:136: error: ‘kGreenSquareMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp: In member function ‘bool Chatpad::isOrangeCircleDown() const’:
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:140: error: ‘kOrangeCircleMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp: In member function ‘bool Chatpad::isPeopleDown() const’:
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:144: error: ‘kPeopleMask’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp: In member function ‘char Chatpad::toAscii(Chatpad::keycode_t)’:
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:288: error: ‘byte’ was not declared in this scope
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:288: error: expected `;' before ‘index’
/home/jacob/Desktop/arduino-1.0.2/libraries/Chatpad/Chatpad.cpp:289: error: ‘index’ was not declared in this scope
I could not make sense of these errors after looking inside chatpad.cpp. Any insight where I should go to? I will take all advice and/or tips, and work from those.