Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. void loop() {
  2.  
  3. if (digitalRead(pinD1)==1){
  4. digitalWrite(pinD0, HIGH);
  5. delay(20000);
  6. }else{
  7. digitalWrite(pinD0, LOW);
  8. }
  9.  
  10. loop2();
  11.  
  12. }
  13.  
  14.  
  15.  
  16. void loop2(){
  17. if (json1=="ON"){
  18. digitalWrite(pinD0, HIGH);
  19. delay(20000);
  20. }else{
  21. digitalWrite(pinD0, LOW);
  22. delay(10000);
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement