SPI.h needed to run on Arduino UNO
JDWong opened this issue · comments
Arduino UNO Owners:
Add "#include <SPI.h>" (without quotes) to prevent build errors.
-Jim
JDWong is correct. To get the code to compile on my Uno, I had to add:
#include <SPI.h>
I uploaded this to create.cc editor and upon compiling I get ERROR: "RTC not declared in this scope"???
Help
ed
To address the RTC compilation error message when using this code with an Arduino Uno, I changed two lines:
Changed !RTC.begin . . .to !rtc.begin . . .
Changed now = RTC.now(); to now = rtc.now();
The sketch then compiled successfully.