rafaelrv

Untitled

Jun 11th, 2018
791
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**** constantes ***/
  2. #define led 5
  3. #define pot A3
  4.  
  5. void setup() {
  6.  
  7.   pinMode(led, OUTPUT);
  8.  
  9.  
  10. }
  11.  
  12. void loop() {
  13.  
  14.   int tiempo = analogRead(pot);
  15.  
  16.   //acciones
  17.   digitalWrite(led, HIGH);
  18.   delay(tiempo);
  19.   digitalWrite(led, LOW);
  20.   delay(tiempo);
  21. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×