Paso 4: El código
/*<br> Modified Blink Example for a Stroboscopib Lamp Created by Uria Dubinsky */ int led = 13; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { int dd = map (analogRead (A0), 0, 1023, 10, 1000); // Reads Potentiometer and maps it to an integer between 10 to 1000) digitalWrite(led, HIGH); // turn the LEDs on (HIGH is the voltage level) delay(dd); // wait for however long sets by the potentiometer digitalWrite(led, LOW); // turn the LEDs off by making the voltage LOW delay(dd); // wait for however long sets by the potentiometer