CODE
maximum(neighbor_data)
Description
Calculates the maximum 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 maximum input value received from neighbors.
Example
    void setup()
    {
    }
    void loop()
    {
        think();
    }
    void think()
    {
        block_value = maximum(neighbor_data);
    }