Arduino Lesson 02- Introduction to "For Loop" by dulip

View this thread on steempeak.com
· @dulip ·
$0.65
Arduino Lesson 02- Introduction to "For Loop"
Hi guys, 
<div class"text-justify">
You all are welcome to @dulip blog today to the second lesson of Arduino, I think you would try our last lesson and today I'm trying to tell you about very special code "for loop", because it is very easy to use when you practice it well and no need to code again and again.. You can save your time.. Basically we can say it is very useful for  any repetitive action. Now we'll consider about the "for coding " further.

![image.png](https://cdn.steemitimages.com/DQmS3w8d4HRBhdUtGn1LKgai7UfwzXWZF72MtWjSJNwGiDP/image.png)
[Src](https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.tme.eu%2Fen%2Fnews%2Flibrary-articles%2Fpage%2F42541%2Farduino-microcontrollers-for-everyone%2F&psig=AOvVaw1XARds3b9M3kS1UFJxK5Cz&ust=1626929336136000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCKDq45-u8_ECFQAAAAAdAAAAABAD)
# Syntax

First I will explain about the syntax of the code, below you can see it. There are there things we have to know before use this code....
<center><code>for (initialization; condition; increment)</code></center>

# Parameters

* initialization: happens first and exactly one time(once)

* condition: each time through the loop(continuously), condition is tested; if it’s correct(true), the statement terminates, and the increment is done, then the condition will be tested again. When the condition becomes incorrect (false), the loop will end.

* increment: done each time through the loop when condition is correct(true). 
[src](https://www.arduino.cc/reference/en/language/structure/control-structure/for/)


![Screenshot 2021-07-21 100214.png](https://cdn.steemitimages.com/DQmboznXDUb8yFh87oRMXSGjuCKBmdxmU8NEpEXBXsmbK7M/Screenshot%202021-07-21%20100214.png)

This is a short lesson but it will be very useful to you because for the  most of your future projects. I hope you will try this for loop coding with your previous lesson [blinking LEDs](https://steemit.com/hive-138458/@dulip/arduino-lesson-01-blinking-leds),then you can realize the difference.. Try it for at least five LEDs  from both coding..
</div>

Thank You & Stay Safe.
πŸ‘  , , , , , ,
properties (23)
post_id92,745,468
authordulip
permlinkarduino-lesson-02-introduction-to-for-loop
categoryhive-138458
json_metadata{"tags":["hive-138458","arduino","lesson2","for-loop","steemit","srilanka"],"users":["dulip"],"image":["https:\/\/cdn.steemitimages.com\/DQmS3w8d4HRBhdUtGn1LKgai7UfwzXWZF72MtWjSJNwGiDP\/image.png","https:\/\/cdn.steemitimages.com\/DQmboznXDUb8yFh87oRMXSGjuCKBmdxmU8NEpEXBXsmbK7M\/Screenshot%202021-07-21%20100214.png"],"links":["https:\/\/www.google.com\/url?sa=i&url=https%3A%2F%2Fwww.tme.eu%2Fen%2Fnews%2Flibrary-articles%2Fpage%2F42541%2Farduino-microcontrollers-for-everyone%2F&psig=AOvVaw1XARds3b9M3kS1UFJxK5Cz&ust=1626929336136000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCKDq45-u8_ECFQAAAAAdAAAAABAD","https:\/\/www.arduino.cc\/reference\/en\/language\/structure\/control-structure\/for\/","https:\/\/steemit.com\/hive-138458\/@dulip\/arduino-lesson-01-blinking-leds"],"app":"steemit\/0.2","format":"markdown"}
created2021-07-21 05:15:21
last_update2021-07-21 05:15:21
depth0
children4
net_rshares1,479,167,999,799
last_payout2021-07-28 05:15:21
cashout_time1969-12-31 23:59:59
total_payout_value0.324 SBD
curator_payout_value0.322 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,088
author_reputation17,692,034,507,824
root_title"Arduino Lesson 02- Introduction to "For Loop""
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (7)
@sandysparkle ·
![image.png](https://cdn.steemitimages.com/DQmNvaer6qTXydAQec7UafPVtS4EzL5GrsXM8vkcdUqydDf/image.png)

Nice to read your post .

Keep posting and stay with our community


Thank you
properties (22)
post_id92,764,377
authorsandysparkle
permlinkqwmqfw
categoryhive-138458
json_metadata{"image":["https:\/\/cdn.steemitimages.com\/DQmNvaer6qTXydAQec7UafPVtS4EzL5GrsXM8vkcdUqydDf\/image.png"],"app":"steemit\/0.2"}
created2021-07-22 04:43:12
last_update2021-07-22 04:43:12
depth1
children1
net_rshares0
last_payout2021-07-29 04:43:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length181
author_reputation79,432,823,472,427
root_title"Arduino Lesson 02- Introduction to "For Loop""
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@dulip ·
thanks @sandysparkle πŸ‘
properties (22)
post_id92,764,483
authordulip
permlinkqwmr1b
categoryhive-138458
json_metadata{"users":["sandysparkle"],"app":"steemit\/0.2"}
created2021-07-22 04:56:00
last_update2021-07-22 04:56:00
depth2
children0
net_rshares0
last_payout2021-07-29 04:56:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length22
author_reputation17,692,034,507,824
root_title"Arduino Lesson 02- Introduction to "For Loop""
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemcurator07 ·
You have been upvoted by @tarpan A  Country Representative, we are voting with the Steemit Community Curator @steemcurator07 account to support the newcomers coming into steemit.

---

Follow @steemitblog for the latest update. You can also check out this link which provides the name of the existing community according to  specialized subject
* [List of Steemit Communities Categorized by Their Subjects](https://steemit.com/hive-133716/@randulakoralage/list-of-steemit-communities-categorized-by-their-subjects)


For general information about what is happening on Steem follow @steemitblog.
properties (22)
post_id92,772,088
authorsteemcurator07
permlinkqwnjxe
categoryhive-138458
json_metadata{"users":["tarpan","steemcurator07","steemitblog"],"links":["https:\/\/steemit.com\/hive-133716\/@randulakoralage\/list-of-steemit-communities-categorized-by-their-subjects"],"app":"steemit\/0.2"}
created2021-07-22 15:20:03
last_update2021-07-22 15:20:03
depth1
children1
net_rshares0
last_payout2021-07-29 15:20:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length594
author_reputation1,025,914,365,470
root_title"Arduino Lesson 02- Introduction to "For Loop""
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@dulip ·
thank you very much
properties (22)
post_id92,772,538
authordulip
permlinkqwnl7e
categoryhive-138458
json_metadata{"app":"steemit\/0.2"}
created2021-07-22 15:47:39
last_update2021-07-22 15:47:39
depth2
children0
net_rshares0
last_payout2021-07-29 15:47:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length19
author_reputation17,692,034,507,824
root_title"Arduino Lesson 02- Introduction to "For Loop""
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000