Magic Glow

Control the brightness of an LED with a light sensor.

forever(function () {
    let brightness = pins.A1.analogRead();
    pins.A2.analogWrite(brightness);
})
feature=uf2
feature=pina1
feature=pina2