I am trying to create a project using the arduino ADQ board http://arduino.cc/en/Main/ArduinoBoardADK and Android Android developer Ericsson Xperia Play running Android 2.3.4. To get started, all I want to do is blink from my Android device using the good tutorial found here http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with- your-phone-code-and-explanation / . I managed to compile an Android application, but I have big difficulties on the arduino sketch, I can not allow import, and it will not compile on Windows7. I understand that there are some problems with the arduino IDE version. I tried to compile both of 0022, 0023 and 1.0. The further I could go with the code, I got these compilation errors after editing AndroidAccessory.h :
D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:37: error: 'EP_RECORD' does not name a type D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:50: error: 'EP_RECORD' has not been declared D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:50: error: 'EP_RECORD' has not been declared D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:64: error: 'USB_NAK_LIMIT' was not declared in this scope
I think I read all the documentation and I can not find a solution to my problem. Setting it up is such a pain ... I really need to do this job. Thanks in advance!:)
-------------------------------------------- ------ -------------------------------------------- ------ -----------------------
EDIT1: The solution that worked for me was to compile the sketch on Linux (Ubuntu)
-------------------------------------------- ------ -------------------------------------------- ------ -----------------------
EDIT2: Again using the latest USB library from the arduino site, the code is NOT compiled. I tried compiling on IDE v22 and v1.0.2 running Windows 8 and Ubuntu 12.10 with the following errors:
E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h: In function 'void setup()': E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h:68: error: 'void AndroidAccessory::powerOn()' is private sketch_jan10a:16: error: within this context E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h: In function 'void loop()': E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h:66: error: 'int AndroidAccessory::read(void*, int, unsigned int)' is private sketch_jan10a:23: error: within this context
source share