I think Timer1 is still not working on the new engine. When I run this code on SimulIDE 0.5.15 / 0.5.16 with a circuit containing only an Arduino Mega, the setup prints show up in Serial Monitor, but the count doesn't. On 0.4, everything works as expected.
- Code:
#define USE_TIMER_1 true
#include <TimerInterrupt.h>
void setup() {
Serial.begin(9600);
Serial.println("Serial started!");
ITimer1.init();
ITimer1.attachInterruptInterval(1000, timerCallback);
Serial.println("Timer started!");
}
void loop() {
}
void timerCallback()
{
Serial.println("+ 1 second");
}