In file included from C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp:3:
C:\arduino\arduino-0020\libraries\USB_Host_Shield\/Max3421e.h:11: error: expected class-name before '{' token
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp: In static member function 'static void MAX3421E::regWr(byte, byte)':
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp:49: error: 'Spi' was not declared in this scope
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp: In member function 'char* MAX3421E::bytesWr(byte, byte, char*)':
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp:58: error: 'Spi' was not declared in this scope
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp: In member function 'byte MAX3421E::regRd(byte)':
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp:83: error: 'Spi' was not declared in this scope
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp: In member function 'char* MAX3421E::bytesRd(byte, byte, char*)':
C:\arduino\arduino-0020\libraries\USB_Host_Shield\Max3421e.cpp:93: error: 'Spi' was not declared in this scope
Can someone tell me what did I do wrong or post working example for me?
I'd be more than happy if someone would make working example how to read data from USB port in USB host shield.
I think i have a problem with spi and max3421e libraries.
I'd be more than happy if someone would make working example how to read data from USB port in USB host shield.
Sadly it is not as simple as that. The USB can be connected to a wide number of devices so you have to specify what sort of device you want to read data from.
My project final goal is to get arduino communicate with nokia s60 phone.
First i'd like to get same data from usb hid device like usb mouse.
I tried this from http://www.circuitsathome.com:
That has nothing to do with the code, power is transferred by the wiring of your USB socket and is not under program control. What hardware are you using?