adafruit / Adafruit_ZeroTimer

happy wrappers for TC modules 3,4,5 on SAMD21
MIT License
32 stars 25 forks source link

Will not compile #4

Closed gjt211 closed 6 years ago

gjt211 commented 6 years ago

const int BLUE_LED = 13; // Blue "stat" LED on pin 13

void setup() { pinMode(BLUE_LED, OUTPUT); }

void loop() { }


Click compile and the result is as follows...

In file included from /Users/user1/Library/Mobile Documents/com~apple~CloudDocs/Arduino/SFSAMD21_01/SFSAMD21_01.ino:3:0: /Users/user1/Library/Mobile Documents/com~apple~CloudDocs/Arduino/libraries/Adafruit_ZeroTimer-master/Adafruit_ZeroTimer.h:11:16: fatal error: tc.h: No such file or directory

include "tc.h"

            ^

compilation terminated. exit status 1 Error compiling for board SparkFun SAMD21 Mini Breakout.



So where is the file `tc.h` meant to be?
Why would the library need it if it was not included?
Are there any instructions?
tuna-f1sh commented 6 years ago

I believe you also need the Adafruit_ASFcore library as this library uses lots of the Atmel Software Framework (ASF) components. It's how I fixed it at least.

You don't even need to include the Adafruit-ASFcore in your sketch, the Arduino pre-parser will pull it in for you if you have the library in your libraries folder - I guess that is why it is not present in the examples.

ladyada commented 6 years ago

we gutted out ASFcore - try now, note the code has changed so check examples!