void setup() | |
{ | |
pinMode(13,OUTPUT); | |
pinMode(3,INPUT); | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
if (digitalRead(3)== LOW) | |
{ | |
digitalWrite(13,HIGH); | |
delay(10); | |
} | |
else | |
{ | |
digitalWrite(13,LOW); | |
delay(10); | |
} | |
} |
void setup() | |
{ | |
pinMode(13,OUTPUT); | |
pinMode(3,INPUT); | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
if (digitalRead(3)== LOW) | |
{ | |
digitalWrite(13,HIGH); | |
delay(10); | |
} | |
else | |
{ | |
digitalWrite(13,LOW); | |
delay(10); | |
} | |
} |
Copyright (c) 2020 My Website All Right Reseved
1 Comments
Pls share the circuit diagram
ReplyDelete