Advertisement
Guest User

Transmisor

a guest
Oct 17th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. /*
  2.  Name:      unoTx.ino
  3.  Created:   17/10/2019 7:30:52 PM
  4.  Author:    Guillermo
  5. */
  6. #include <Arduino.h>
  7. int pote;
  8. boolean ledState;
  9.  
  10.  
  11. void setup()
  12. {
  13.     Serial.begin(9600);
  14.     pinMode(LED_BUILTIN, OUTPUT);
  15. }
  16.  
  17. void loop()
  18. {
  19.     pote = analogRead(A0);
  20.     Serial.print("POTE1 ");
  21.     Serial.println(pote);
  22.     delay(100);
  23.     ledState = !ledState;
  24.     digitalWrite(LED_BUILTIN, ledState);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement