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.
post_id | 92,745,468 |
---|---|
author | dulip |
permlink | arduino-lesson-02-introduction-to-for-loop |
category | hive-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"} |
created | 2021-07-21 05:15:21 |
last_update | 2021-07-21 05:15:21 |
depth | 0 |
children | 4 |
net_rshares | 1,479,167,999,799 |
last_payout | 2021-07-28 05:15:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.324 SBD |
curator_payout_value | 0.322 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 2,088 |
author_reputation | 17,692,034,507,824 |
root_title | "Arduino Lesson 02- Introduction to "For Loop"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cmp2020 | 0 | 147,227,854,035 | 50% | ||
sd974201 | 0 | 1,831,746,758 | 5% | ||
steemcurator07 | 0 | 949,313,797,919 | 11% | ||
tarpan | 0 | 182,097,233,685 | 100% | ||
sandysparkle | 0 | 49,326,198,656 | 100% | ||
world-of-cricket | 0 | 93,011,706,911 | 100% | ||
zero-to-infinity | 0 | 56,359,461,835 | 100% |
![image.png](https://cdn.steemitimages.com/DQmNvaer6qTXydAQec7UafPVtS4EzL5GrsXM8vkcdUqydDf/image.png) Nice to read your post . Keep posting and stay with our community Thank you
post_id | 92,764,377 |
---|---|
author | sandysparkle |
permlink | qwmqfw |
category | hive-138458 |
json_metadata | {"image":["https:\/\/cdn.steemitimages.com\/DQmNvaer6qTXydAQec7UafPVtS4EzL5GrsXM8vkcdUqydDf\/image.png"],"app":"steemit\/0.2"} |
created | 2021-07-22 04:43:12 |
last_update | 2021-07-22 04:43:12 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2021-07-29 04:43:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 181 |
author_reputation | 79,432,823,472,427 |
root_title | "Arduino Lesson 02- Introduction to "For Loop"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
thanks @sandysparkle π
post_id | 92,764,483 |
---|---|
author | dulip |
permlink | qwmr1b |
category | hive-138458 |
json_metadata | {"users":["sandysparkle"],"app":"steemit\/0.2"} |
created | 2021-07-22 04:56:00 |
last_update | 2021-07-22 04:56:00 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-07-29 04:56:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 22 |
author_reputation | 17,692,034,507,824 |
root_title | "Arduino Lesson 02- Introduction to "For Loop"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
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.
post_id | 92,772,088 |
---|---|
author | steemcurator07 |
permlink | qwnjxe |
category | hive-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"} |
created | 2021-07-22 15:20:03 |
last_update | 2021-07-22 15:20:03 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2021-07-29 15:20:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 594 |
author_reputation | 1,025,914,365,470 |
root_title | "Arduino Lesson 02- Introduction to "For Loop"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
thank you very much
post_id | 92,772,538 |
---|---|
author | dulip |
permlink | qwnl7e |
category | hive-138458 |
json_metadata | {"app":"steemit\/0.2"} |
created | 2021-07-22 15:47:39 |
last_update | 2021-07-22 15:47:39 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-07-29 15:47:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 19 |
author_reputation | 17,692,034,507,824 |
root_title | "Arduino Lesson 02- Introduction to "For Loop"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |