Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop() {
- if (digitalRead(pinD1)==1){
- digitalWrite(pinD0, HIGH);
- delay(20000);
- }else{
- digitalWrite(pinD0, LOW);
- }
- loop2();
- }
- void loop2(){
- if (json1=="ON"){
- digitalWrite(pinD0, HIGH);
- delay(20000);
- }else{
- digitalWrite(pinD0, LOW);
- delay(10000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement