1 2 3 4 5 6 7 8 9 10 11 12
// Source: https://gist.github.com/adnbr/2439125#file-counting-millis-c #ifndef GET_MILLIS_h #define GET_MILLIS_h // the CTC match value in OCR1A #define CTC_MATCH_OVERFLOW ((F_CPU/1000)/8) void millis_init(); unsigned long millis(); #endif