Blinking LED with Arduino
What is LED?
An LED is an abbreviation of the initials of the word Light Emitting Diode, which means light emitting diode. Unlike small bulbs that work with 6V, which we are familiar with and which we use most of our projects, LEDs have two different types of anodes and cathodes. The anode should be connected to the positive tension, ie, + to
, and the cathode to the negative tension, ie, – to the ground or to the ground (GND, Ground).
After you have provided the above links, type your arduino code.
2 3 4 5 6 7 8 9 10 11 12 |
void() { pinMode(13,OUTPUT); } void loop() { digitalWrite(13,HIGH); delay(1000); digitalWrite(13,LOW); delay(1000); } |
Code LED will flash for 1 sec.
What is the above void setup() ?
-
At the beginning of the program, the pins to be used must be set. The setup function is used for this
What is the above void loop() ?
-
It is the section that the program runs continuously
What is the above delay() ?
- It is the program delay seconds duration determined
Thank you for reading my writing 🙂
click to link for arduino setup -> http://www.tahasivaci.com/arduino/install-the-arduino-software-ide
Recent Comments