#include <Plaquette.h>
Chronometer mainChrono; // to mark time since the program started
AnalogOut redLed (11);
AnalogOut greenLed (10);
AnalogOut blueLed (9);
Wave sineWave(SINE, 1.3);
Plotter plotter(9600);
void begin() {
mainChrono.start();
}
void step() {
if (mainChrono > 6.0)
sineWave >> blueLed;
else if (mainChrono > 3.0)
sineWave >> redLed;
else// if (mainChrono > 0.0)
sineWave >> greenLed;
redLed >> plotter;
greenLed >> plotter;
blueLed >> plotter;
if (mainChrono > 9.0)
mainChrono.start(); // this re-starts the Chrono from zero
}