Hi,
I've been using the Arduino Beta 1.0 for a few months now for Android Open Accessory Kit-related development. It was working fine. Then all of a sudden today I have started getting the following errors when verifying my project - without having modified anything.
Even a simple empty sketch (with empty void,setup methods), where I include the following:
#include <AndroidAccessory.h>
#include <Max3421e.h>
#include <Usb.h>
Causes an 'error compiling' message as below:
In file included from ledmasterexample.cpp:1:
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:37:22: error: WProgram.h: No such file or directory
In file included from ledmasterexample.cpp:1:
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:44: error: 'byte' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:46: error: 'byte' has not been declared
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:46: error: 'byte' has not been declared
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:47: error: expected ';' before '(' token
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:48: error: 'byte' has not been declared
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:49: error: 'byte' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:50: error: expected ';' before '(' token
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:51: error: 'byte' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:52: error: 'boolean' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:53: error: 'boolean' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:56: error: 'byte' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:57: error: 'byte' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:58: error: 'byte' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:61: error: 'uint8_t' has not been declared
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:62: error: 'uint8_t' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:63: error: 'uint8_t' does not name a type
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h: In static member function 'static void MAX3421E::spi_init()':
C:\Users\Petteri\Desktop\petteri\Arduino\arduino-1.0-beta1\libraries\USB_Host_Shield/Max3421e.h:66: error: 'uint8_t' was not declared in this scope
The error message is much longer, so I only copied the first third or so.
All libraries are in the correct location as they can be seen by the IDE in "import library". I've re-installed all libraries fresh from accessories.google.com - but yet this error persists on every sketch (including the provided DemoKit example).
Again I stress that I have NOT modified the library files in any manner! What could be the issue here?
Please help, it is urgent!