#include <Plaquette.h>
// The LED.
DigitalOut led(LED_BUILTIN);
// A square-wave (on/off) oscillator.
SquareWave oscillator(2.0); // 2 seconds period
void begin() {
// Set duty cycle of wave.
oscillator.width(0.1); // 0.1 => 10% up, 90% down
}
void step() {
// Send oscillator value to LED.
oscillator >> led;
}