Difference between revisions of "Exercise - Adding Devices to a Program"

From Flowcode Help
Jump to navigationJump to search
Line 1: Line 1:
This exercise assumes that you have already built the Flowcode flowchart described in the exercise [[Exercise - Creating Your First Flowchart|Creating Your First Flowchart]].
+
This exercise assumes that you have already built the Flowcode flowchart described in the exercise [[Exercise - Creating Your First Flowchart|Creating Your First Flowchart]].<br />
 +
To complete the program, you need to add the two electronic components, the switch and the lamp.
 +
 
 +
 
 +
__TOC__
 +
 
 +
 
 +
==Load the Flowcode Flowchart==
 +
The flowchart sequence will be:
 +
: Check if the switch is pressed.
 +
:: If it isn't, go back to the beginning.
 +
:: If it is:
 +
::: switch on the lamp;
 +
::: wait for 10 seconds;
 +
::: switch off the lamp;
 +
::: go back to the beginning.

Revision as of 14:57, 12 June 2013

This exercise assumes that you have already built the Flowcode flowchart described in the exercise Creating Your First Flowchart.
To complete the program, you need to add the two electronic components, the switch and the lamp.



Load the Flowcode Flowchart

The flowchart sequence will be:

Check if the switch is pressed.
If it isn't, go back to the beginning.
If it is:
switch on the lamp;
wait for 10 seconds;
switch off the lamp;
go back to the beginning.