Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computers:arduino:breeze [03-Jun-2019 14:07] – [Calling Subroutines] Steve Joynt | computers:arduino:breeze [02-Feb-2025 16:14] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 167: | Line 167: | ||
The word " | The word " | ||
- | On line 200 there is a coding error. The command " | + | On line 200 there is a coding |
==== Named Sections of Code ==== | ==== Named Sections of Code ==== | ||
Line 174: | Line 174: | ||
I propose to use the hash character "#" | I propose to use the hash character "#" | ||
- | The first parameter will be the name of the label, and must be unique within the script. More parameters may be supplied, but will be ignored as comments, but beware of using [brackets] or (brackets) within the parameters as they will be executed as usual. It is recommended to enclose any comments in quotes. | + | The first parameter will be the name of the label, and must be unique within the script. |
+ | |||
+ | More parameters may be supplied, but will be ignored as comments, but beware of using [brackets] or (brackets) within the parameters as they will be executed as usual. It is recommended to enclose any comments in quotes. | ||
+ | |||
+ | If the first parameter is "#", | ||
< | < | ||
Line 186: | Line 190: | ||
< | < | ||
- | 100 # CountDown "This is the entry point to this sub-routine" | + | 100 # CountDown "This is the entry point to this section of code" |
+ | 105 # # "It counts down from 10 to 1, then signals 'Blast Off'" | ||
110 set count 10 | 110 set count 10 | ||
200 # CountDownLoop | 200 # CountDownLoop |