Picker image
|
Name and Description
|
|
| variable (getter)
This block returns the value stored in the selected variable. |
none
|
| Motor (getter)
This block returns the state of an electric motor connected to one of the controller's motor outputs. |
none
|
| ServoRC (getter)
This block returns the position (in degrees) of an R/C servo connected to a controller's digital pin. |
none
|
| AnalogRead
This block returns the value of the selected analog sensor input. |
none
|
| PulseIn
This block returns the the length (in microseconds) of a pulse in the selected digital input. For example, if the first param is true, the block will wait until the input takes that value, and then will measure the time until the input goes false again. The second param sets the maximum time the block will wait to take the measure. |
value: bool
timeOut (micro seconds): number
|
| timeStamp
This block returns the number of milliseconds since the program began. |
none
|
| ramdom
This block returns a pseudorandom number between 0 and 100. |
none
|
| buzzerNote (constant)
This block returns the frequency belonging to the selected note. |
none
|
| number (constant)
This block returns a constant number. |
none
|
| pi (constant)
This block returns the pi constant with a limited number of decimals (3.14159265358979323846). |
none
|
| e (constant)
This block returns the e constant (or "Euler's number") with a limited number of decimals (2.7182818284590452354). |
none
|
| add
This block allows to add numbers, variables and other arithmetic expressions. | value1: number
value2: number
Note: More operands (values) can be added with the add param button:
|
| substract
This block allows to substract numbers, variables and other arithmetic expressions. | value1: number
value2: number |
| multiply
This block allows to multiply numbers, variables and other arithmetic expressions. | value1: number
value2: number
Note: More operands (values) can be added with the add param button:
|
| divide
This block allows to divide numbers, variables and other arithmetic expressions. It also lets you to write numbers as fractions. | numerator: number
denominator: number |
| negative (unary minus)
This block makes negative the number or the arithmetic expression at its left. | value: number |
| power
This block allows to raise the first numerical parameter (base) to the exponent (or power) given by the second numerical parameter. | base: number
exponent: number |
| abs
This block returns the absolute value of the number or the arithmetic expression at its left. | value: number |
| modulo (remainder)
This block returns the remainder of the divistion between it's 2 parameters. | value1: number
value2: number |
| minimum
This block returns the minimum of two numbers, variables or other arithmetic expressions. | value1: number
value2: number |
| maximum
This block returns the maximum of two numbers, variables or other arithmetic expressions. | value1: number
value2: number |
| map
This block allows to map linearly a numerical value from a range of values (fromLow to fromHigh) to another range (toLow to toHigh). |
x: number
fromLow: number
fromHigh: number
toLow: number
toHigh: number |
| constrain
This block allows to limit a number, variable or any other arithmetic expression to a value between a minimum (a) and a maximum (b). |
x: number
a: number
b: number |
| sine
This block returns the sine of the angle given by the number or the arithmetic expression at its left (in radians). | value: number |
| cosine
This block returns the cosine of the angle given by the number or the arithmetic expression at its left (in radians). | value: number |
| tangent
This block returns the tangent of the angle given by the number or the arithmetic expression at its left (in radians). | value: number |
| arcsin
This block returns the angle (in radians) whose sine is the number or expression on the left. | value: number |
| arccosine
This block returns the angle (in radians) whose cosine is the number or expression on the left. | value: number |
| arctangent
This block returns the angle (in radians) whose tangent is the number or expression on the left. | value: number |
| IRRemote
This block returns the number obtained from an infrared remote control sensor. |
none
|
| Ping
This block returns the distance (in cm) measured with an ultrasonic sensor like Parallax's PING)))[TM], Seeedstudio SEN136B5B or similar. |
none
|
| IRRanger (10 to 80 cm)
This block returns the approximate distance (in cm) measured with a Sharp GP2Y0A21YK0F infrared ranger (10 to 80 cm aprox.). |
none
|
| IRRanger (20 to 150 cm)
This block returns the approximate distance (in cm) measured with a Sharp GP2Y0A02YK0F infrared ranger (20 to 150 cm aprox.). |
none
|