|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #1 on: April 25, 2012, 08:39:02 am » |
But setReport is giving me errors. Your code? The errors? Our psychic is out sick today. Strange that she didn't see that coming...
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #2 on: April 25, 2012, 08:44:52 am » |
http://www.circuitsathome.com/mcu/driving-the-cheeky-mail-notifier-from-arduino#more-5665I can't even compile the above. I believe it is because it is using the legacy usb host shield that does not work with arduino 1.0? error: 'class USB' has no member named 'setReport' Some information about the USB Intf.number: 00 Alt.: 00 Endpoints: 01 Endpoint address: 82 Attr.: 03 Max.pkt size: 0008 Polling interval: 0A Endpoint address: 81 Attr.: 03 Max.pkt size: 0008 Polling interval: 0A
|
|
|
|
« Last Edit: April 25, 2012, 08:51:31 am by twodayslate »
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #3 on: April 25, 2012, 09:29:45 am » |
I believe it is because it is using the legacy usb host shield that does not work with arduino 1.0? The hardware doesn't care which version of the IDE you use. Which version of the USB Host library are you using?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #4 on: April 25, 2012, 10:30:00 am » |
USB Host Library 2.0
The legacy version wasn't working for me because it said the BYTE was outdated for arduino 1.0
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #5 on: April 25, 2012, 10:51:03 am » |
So, you are using version 2.0 with some code that expects version 1.0, and you are having problems compiling, and can't figure out why. Did I miss something?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #6 on: April 25, 2012, 10:55:02 am » |
Nope, that basically sums it up.
So what is the replacement for setReport for 2.0?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #7 on: April 25, 2012, 10:58:07 am » |
So what is the replacement for setReport for 2.0? Beats me. Might be easier to get the older version working with 1.0, though.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #8 on: April 25, 2012, 11:54:02 am » |
Where would I be able to download a pre-1.0 arduino environment?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #9 on: April 25, 2012, 12:11:53 pm » |
Why not make the USB 1.0 library work with Arduino 1.0? It can't be that hard.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #10 on: April 25, 2012, 07:20:42 pm » |
Alright. I finally got this to compile. However, I don't think I am connected fully. #define MailNotifier_ADDR 1 #define MailNotifier_EP 81 #define MailNotifier_IF 0 #define EP_MAXPKTSIZE 8 #define EP_POLL 0x0a
EP_RECORD ep_record[ 81 ]; Here is the usb information from arduino http://pastebin.ca/2140539edit:// Here is my code: http://pastebin.ca/2140545edit:// I got it! http://pastebin.ca/2140564I used pre-1.0 and the legacy USB driver.
|
|
|
|
« Last Edit: April 25, 2012, 08:58:24 pm by twodayslate »
|
Logged
|
|
|
|
|
|