Description:
Learn how to use a push button to turn an LED on and off in Tinkercad! 🚀 This beginner-friendly tutorial walks you through the circuit setup and Arduino code needed to control an LED using a button press. Perfect for those exploring basic electronics and Arduino simulations!
🔗 Code used:
void setup()
{
pinMode(A0,INPUT);
pinMode(13, OUTPUT);
}
void loop()
{
if(digitalRead(A0)==HIGH)
{
digitalWrite(13, HIGH);
}
else
{
digitalWrite(13,LOW);
}
}
Don't forget to like, share, and subscribe for more Tinkercad and Arduino tutorials!🔔 #Tinkercad #Arduino #Electronics #3GenTechies #coding #programming #displaytechnology
Did you miss our previous article...
https://learningvideos.club/computer-technology/data-types-java-tutorials-for-beginners-1