Push Button and LED control with the Arduino | Arduino के साथ पुश बटन और LED नियंत्रण
Push Button and LED control with the Arduino | Arduino के साथ पुश बटन और LED नियंत्रण
Video Link: - Click Here For Video
Arduino Circuit: -
Push Button Programming: -
int buttonState = 0;
int buttonPin = 4;
void setup()
{
pinMode(12, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop()
{
buttonState = digitalRead(buttonPin);
if(buttonState == HIGH)
{
digitalWrite(12,HIGH);
delay(1000);
}else
{
digitalWrite(12,LOW);
}
}
Share, Support, Subscribe!!! 1. PRO KAM EXPLAINED 2. Knowledge KAM 3. PRO KAM Follow us on 1. Facebook 2. Instagram 3. Pinterest 4. Blogspot 5 Twitter If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it. So I am waiting #prokam #pro #IDM #Solutions #Hack
0 Comments