Teensy 4.0, simple code:
#include <avr/pgmspace.h>
#include <cstddef>
IntervalTimer LightsTimer;
void myTask(void) {
}
...results in...
R:\QTRNM-QFSV\Teensy\Quartetronome\Metronome.cpp:4:1: error: 'IntervalTimer' does not name a type
4 | IntervalTimer LightsTimer;
| ^~~~~~~~~~~~~
exit status 1
Compilation error: exit status 1
Searching this, I encounter the "Lightweight Callbacks" thread. (that's where I got the #include ideas from). Sorry to wake a sleeping giant...
#include <avr/pgmspace.h>
#include <cstddef>
IntervalTimer LightsTimer;
void myTask(void) {
}
...results in...
R:\QTRNM-QFSV\Teensy\Quartetronome\Metronome.cpp:4:1: error: 'IntervalTimer' does not name a type
4 | IntervalTimer LightsTimer;
| ^~~~~~~~~~~~~
exit status 1
Compilation error: exit status 1
Searching this, I encounter the "Lightweight Callbacks" thread. (that's where I got the #include ideas from). Sorry to wake a sleeping giant...