So our very first project is to blink a LED using Arduino
So let's start it
Here is a fritzing diagram to you to blink an LED
For Video tutorial you can subscribe my channel
Techboy Arduino
So let's start it
Here is a fritzing diagram to you to blink an LED
Put the negative pin of LED to the GND pin
Put the positive pin of LED to pin no 13 of the Arduino Board
Here is the code
_________________________________________________________________________________
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
_________________________________________________________________________________
If you have any inquiry you can comment on the comment section
Techboy Arduino
No comments:
Post a Comment