SHARE
TWEET

Untitled

a guest May 20th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup()
  2. {
  3.   pinMode(13, OUTPUT);
  4.   pinMode(12, OUTPUT);
  5.   pinMode(11, OUTPUT);
  6. }
  7.  
  8. void loop()
  9. {
  10. }
  11.  
  12. void aguardar(int segundos) {
  13.   delay(segundos * 1000);
  14. }
  15.  
  16. void ligarLedVermelho() {
  17.   digitalWrite(13, HIGH);
  18. }
  19.  
  20. void desligarLedVermelho() {
  21.   digitalWrite(13, LOW);
  22. }
  23.  
  24. void ligarLedAmarelo() {
  25.   digitalWrite(12, HIGH);
  26. }
  27.  
  28. void desligarLedAmarelo() {
  29.   digitalWrite(12, LOW);
  30. }
  31.  
  32. void ligarLedVerde() {
  33.   digitalWrite(11, HIGH);
  34. }
  35.  
  36. void desligarLedVerde() {
  37.   digitalWrite(11, LOW);
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top