#include <Plaquette.h>
AnalogOut redLed(9);
AnalogOut blueLed(10);
DigitalOut threshLed(4);
AnalogIn myPotentiometer(A0);
AnalogIn myLightSensor(A1);
Smoother smoother(10.0);
MinMaxScaler myMinMax;
SineWave myWave(1.0);
void begin() {
// put your setup code here, to run once:
}
void step() {
// put your main code here, to run repeatedly:
myLightSensor >> myMinMax;
println(myLightSensor);
float flicker = mapFrom01(myPotentiometer, 1.0, 0.1);
myWave.frequency(flicker);
myWave >> blueLed;
}