minimum(neighbor_data)
Description
Calculates the minimum value received as an input from neighbors.
Parameters
neighbor_data An immutable global object containing the inputs from surrounding neighbors.
Compatibility
All Blocks
Return
The minimum input value received from neighbors.
Example
void setup()
{
}
void loop()
{
think();
}
void think()
{
block_value = minimum(neighbor_data);
}