Difference between revisions of "Mixly Block Category - Control"

From Microduino Wiki
Jump to: navigation, search
(System Time Uptime)
Line 1: Line 1:
This Block category contains swag.
+
=Setup=
 +
Blocks are called that are contained within the Setup blocks at the start of the device. The setup function will only run once, after each powerup or reset. It is the very start of the program running and used to initialize variables, pin modes, start using libraries, etc.
  
=Setup=
+
Read more here: https://www.arduino.cc/en/Reference/Setup
 
=Delay=
 
=Delay=
=If... do...=
+
Pauses the program for the amount of time in milliseconds (ms) or microseconds (μs) specified.
 +
 
 +
Read more here: https://www.arduino.cc/en/Reference/Delay
 +
=If... else if... else=
 +
if, which is used in conjunction with a comparison operator, tests whether a certain condition has been reached, such as an input being above a certain number.
 +
==If==
 +
The ''''if''' block checks for a condition is true. It will execute the contained blocks if the condition is true. It will skip the contained blocks if the condition is false.
 +
==If... Else if==
 +
'''else if''' checks for a condition is true, but occurs after the '''if'''. Multiple '''else if''' can be used and the checks occurs sequentially. Contained blocks execute if the condition is true. Contains blocks will skips if the condition is false.
 +
==Else==
 +
'''else''' occurs when the '''if''' and '''else if''' are never triggered. This
 +
 
 
=Switch=
 
=Switch=
 
=Count Loop=
 
=Count Loop=

Revision as of 22:59, 9 February 2017

Setup

Blocks are called that are contained within the Setup blocks at the start of the device. The setup function will only run once, after each powerup or reset. It is the very start of the program running and used to initialize variables, pin modes, start using libraries, etc.

Read more here: https://www.arduino.cc/en/Reference/Setup

Delay

Pauses the program for the amount of time in milliseconds (ms) or microseconds (μs) specified.

Read more here: https://www.arduino.cc/en/Reference/Delay

If... else if... else

if, which is used in conjunction with a comparison operator, tests whether a certain condition has been reached, such as an input being above a certain number.

If

The 'if block checks for a condition is true. It will execute the contained blocks if the condition is true. It will skip the contained blocks if the condition is false.

If... Else if

else if checks for a condition is true, but occurs after the if. Multiple else if can be used and the checks occurs sequentially. Contained blocks execute if the condition is true. Contains blocks will skips if the condition is false.

Else

else occurs when the if and else if are never triggered. This

Switch

Count Loop

Repeat Loop

Break Loop

System Uptime

MsTimer2