USB Host Shield + Barcode Scanner

Hello all,

I just purchased this USB Host Shield: https://www.sparkfun.com/products/9947 and I've connected it to a barcode scanner (the Taotronics TT-BS003: http://www.amazon.com/electronics/dp/B006LVO56W).

I'm trying to run the code example from this tutorial on my Arduino, but it doesn't seem to be working: http://www.circuitsathome.com/mcu/connecting-barcode-scanner-arduino-usb-host-shield I keep getting the error message: "expected class name before '{' token," and it highlights Line #59. Anybody understand what's going on? I've installed all the libraries and copied them into the project folder, too.

Thanks!

Never mind, I just noticed that I didn't download or install Arduino.h, inttypes.h, avr/pgmspace.h, or confdescparser.h. Gonna install those libraries and report back to y'all.

I just installed confdescparser.h, and I'm not quite sure how to acquire the other three, or if I already have them and I just don't know it. Still getting the exact same error. Thoughts?

Also, when I try to run the program USB_desc.pde from this library, the code won't compile: GitHub - felis/USB_Host_Shield_2.0: Revision 2.0 of USB Host Library for Arduino.

It says "Error compiling" and:

"In file included from USB_desc.pde:5:
/Users/ahhreeyell/Documents/Arduino/libraries/Usb/Usb.h:41:21: error: message.h: No such file or directory"

What's going on?

can some one help me, please! why when I connect all circuit based on http://www.circuitsathome.com/mcu/connecting-barcode-scanner-arduino-usb-host-shield and get some error.. when do compiling and they said usb does have not support!. i newer for arduino..please!

can some one help me, please!

I can't. I can't understand you, and you left a lot out of your post.

why when I connect all circuit based on http://www.circuitsathome.com/mcu/connecting-barcode-scanner-arduino-usb-host-shield and get some error.

What code? What errors?

when do compiling and they said usb does have not support!

Who is they? Doesn't have support for what?

i newer for arduino.

What? If this means that you are new to Arduino, then writing drivers for USB devices is NOT what you should be doing.