Guest User

Untitled

a guest
Nov 19th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. int retardo = 2000;
  2. int estadoled = 0;
  3. int pinled=10;
  4. void setup() {
  5. Serial.begin(9600);
  6. pinMode(pinled,OUTPUT);
  7.  
  8. }
  9. void CambiaEstadoLed(){
  10. estadoled=~estadoled;
  11. digitalWrite(pinled,estadoled);
  12. }
  13. void loop(){
  14. CambiaEstadoLed();
  15. delay(retardo);
  16.  
  17. }
Add Comment
Please, Sign In to add comment