I am going through the Ethernet+SD tutorial. The SdFatInfo and SdFatLs sketches worked fine. I am now getting compile errors from the SDWebBrowse sketch that I downloaded from GitHub:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp: In member function 'void W5100Class::init()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp:28: error: 'delay' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp:30: error: 'SPI' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp: In static member function 'static uint8_t W5100Class::write(uint16_t, uint8_t)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp:127: error: 'SPI' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp: In static member function 'static uint16_t W5100Class::write(uint16_t, uint8_t*, uint16_t)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp:140: error: 'SPI' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp: In static member function 'static uint8_t W5100Class::read(uint16_t)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp:153: error: 'SPI' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp: In static member function 'static uint16_t W5100Class::read(uint16_t, uint8_t*, uint16_t)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/utility/w5100.cpp:166: error: 'SPI' was not declared in this scope
Is there a reason w1500 header file is commented out in Ethernet.h?
Could this be the problem?
Thanks.
SDWebBrowse error compiling
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 9
- Joined: Wed Apr 13, 2011 2:07 pm
Re: SDWebBrowse error compiling
I ended up just giving what it asked for by including the 2 following lines:
#include <SPI.h>
#include <w1500.h>
Everything works as indicated and I can now access the "dummy" file on the SD card through a browser.
Thanks!
#include <SPI.h>
#include <w1500.h>
Everything works as indicated and I can now access the "dummy" file on the SD card through a browser.
Thanks!
Please be positive and constructive with your questions and comments.