Difference between revisions of "Mixly Block Category - Factory"
From Microduino Wiki
(→Declare a Variable with a Type) |
(→Call a Function with Parameter(s)) |
||
Line 7: | Line 7: | ||
=Call a Function with Parameter(s)= | =Call a Function with Parameter(s)= | ||
− | This calls a Function / Procedure with parameter(s) or without. The number of parameters is configurable using the gear icon. | + | This calls a Function / Procedure with parameter(s) or without. The number of parameters is configurable using the gear icon. There are two variants, one that has no return value and one that expects a return value. |
*Function Name - the name of the Function / Procedure to be called. | *Function Name - the name of the Function / Procedure to be called. | ||
*Parameters / Input Variables - variables, statements or constants that will be passed to the Function / Procedure. | *Parameters / Input Variables - variables, statements or constants that will be passed to the Function / Procedure. |
Revision as of 01:02, 28 February 2017
Contents
Include a Library
This block includes a library. A library is a file that contains code for functionality.
- Library Name - the name of the Library file. Usually the class name.
Read more here: https://www.arduino.cc/en/reference/libraries
Call a Function with Parameter(s)
This calls a Function / Procedure with parameter(s) or without. The number of parameters is configurable using the gear icon. There are two variants, one that has no return value and one that expects a return value.
- Function Name - the name of the Function / Procedure to be called.
- Parameters / Input Variables - variables, statements or constants that will be passed to the Function / Procedure.
Declare a Variable with a Type
This block allows the declaration of variables.
- Data Type - the type of Data Type for the variable being declared.
- Variable Name - the name of the variable being declared.
Read more here: https://www.arduino.cc/en/Reference/VariableDeclaration