Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Laboratorio 0
- //Autor: Cristian Restrepo
- //Fecha: 11/08/2016
- #define LED D5
- #define POT A0
- // Setup
- void setup() {
- pinMode(LED,OUTPUT);
- pinMode(POT,INPUT);
- }
- // LOOP
- void loop() {
- int valor=analogRead(POT);
- digitalWrite(LED,HIGH);
- delay(valor);
- digitalWrite(LED,LOW);
- delay(valor);
- }
Advertisement
Add Comment
Please, Sign In to add comment