Answer the question
In order to leave comments, you need to log in
Arduino compilation error
I did everything as written here .
Downloaded IDE: www.arduino.cc/en/Main/software (Windows)
Downloaded and added USB_Host_Shield Lib: github.com/felis/USB_Host_Shield/tree/dev
But any code using AndroidAccessory, Usb can't compile.
Here is an example of test code.
And compilation errors here .
(Posted on bastebin so as not to clog the question)
Where are the errors from?
Answer the question
In order to leave comments, you need to log in
The fact is that in the recently released IDE version 1.0, the structure of include files has changed, now it is enough to include a single Arduino.h in the code. Developers honestly warn about this in the revisions.txt file attached to the IDE. There is also a universal way to solve compatibility problems - in the old libraries, the line
#include "WProgram.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
It's written there what's going on.
Find the WProgram.h file and figure out why it is not found by the compiler.
Different versions of the IDE have different errors. Here is a screenshot.
I suspect that these are fairly easy questions, but I have absolutely no experience in this area, but I need to do it.
Now, if you take the IDE version - Arduino 0022, there are errors:
How to get rid of them and what are these errors? I did not find information on the Internet.
D:\develop\Arduino\Arduino-IDE\arduino-0022\arduino-0022\libraries\AndroidAccessory/AndroidAccessory.h:37: error: 'EP_RECORD' does not name a type
D:\develop\Arduino\Arduino-IDE\arduino-0022\arduino-0022\libraries\AndroidAccessory/AndroidAccessory.h:50: error: 'EP_RECORD' has not been declared
D:\develop\Arduino\Arduino-IDE\arduino-0022\arduino-0022\libraries\AndroidAccessory/AndroidAccessory.h:50: error: 'EP_RECORD' has not been declared
The problem was that the version of IDE 1.0 was used, but it is better to use 0022, since there are no drivers for Accessory for 1.0. And instead of AndroidAccessory it is better to use ADK.
A bunch of examples and the library itself is on github.
Usb Host Shield
Usb Host Shield 2.0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question