0

DS1307 example wont compile with digispark
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

DS1307 example wont compile with digispark

by Adlmail on Thu Jul 26, 2018 8:46 pm

The Ds1307 example does compile with arduino uno but if I put in digispark board I get:



Build options changed, rebuilding all
In file included from C:\Users\Ron\AppData\Local\Temp\arduino_9d2c10d80facfe4784b0698b7fb8834e\ds1307.ino:3:0:

C:\Users\Ron\Documents\Arduino\libraries\RTClib-master/RTClib.h:37:21: error: '__FlashStringHelper' does not name a type

DateTime (const __FlashStringHelper* date, const __FlashStringHelper* time);

^

C:\Users\Ron\Documents\Arduino\libraries\RTClib-master/RTClib.h:37:42: error: ISO C++ forbids declaration of 'date' with no type [-fpermissive]

DateTime (const __FlashStringHelper* date, const __FlashStringHelper* time);

^

C:\Users\Ron\Documents\Arduino\libraries\RTClib-master/RTClib.h:37:54: error: '__FlashStringHelper' does not name a type

DateTime (const __FlashStringHelper* date, const __FlashStringHelper* time);

^

C:\Users\Ron\Documents\Arduino\libraries\RTClib-master/RTClib.h:37:75: error: ISO C++ forbids declaration of 'time' with no type [-fpermissive]

DateTime (const __FlashStringHelper* date, const __FlashStringHelper* time);

^

exit status 1
Error compiling.

HELP!

Adlmail
 
Posts: 6
Joined: Wed Aug 26, 2015 5:15 pm

Re: DS1307 example wont compile with digispark

by Adlmail on Thu Jul 26, 2018 9:17 pm

It will compile if I set the processor to digispark pro. Why would they be different?

Adlmail
 
Posts: 6
Joined: Wed Aug 26, 2015 5:15 pm

Please be positive and constructive with your questions and comments.