#include <SimpleTimer.h>
SimpleTimer timer;
void (*Write)();
void setup()
{
Serial.begin(9600);
Write = &start;
timer.setInterval(1000, (*Write));
}
void loop()
{
timer.run();
}
void start()
{
Serial.println("1");
Write = &startTwo;
}
void startTwo()
{
Serial.println(2);
}