Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 172 - CodePilot V5.0 C7
P. 172

    Step  7    Select the desired programming mode.

                      You can modify the code as per your requirements. Use the BLOCKS + TEXT coding for better
                      understanding of the program. The on start and forever blocks are already present in the code
                      editor by default. Now, let’s focus on understanding the programming.
                      Block based programming:

                       Step  8     Drag and place the set pin 13 to HIGH block from the Output section inside the forever
                                  block. This will turn the LED on.

                       Step  9     Drag and place the wait 10 secs block from the Control section directly under the set
                                  pin 13 to HIGH block. You can modify the time and adjust the duration as per your
                                  requirement.

                       Step  10    Drag and place the set pin 13 to LOW block under the wait 10 secs block. This will turn
                                  off the LED.
                       Step  11    Drag and place the wait 2 secs block under the set pin 13 to LOW block. This delay will
                                  be applied before the LED turns back on.

                      170
                            CodePilot (V5.0)-VII

| 167 168 169 170 171 172 173 174 175 176 177 |