Math Block-Examples
1.Arithmetic binary operation (+, -, *, /):
2.Remainder (%):
3.Minimum and maximum of two values:
4.Absolute value:
5.Square root:
6.Round, Ceiling, Floor, Truncate:
7.Random value:
8.constrain
9.Map
This example maps the value read from the analog pin P0
to an LED coordinate between 0
and 4
.