inverse(block_value)
Description
Calculates the inverse of the input block value.
Parameters
block_value An unsigned number between 0 and 255
Compatibility
All Blocks
Return
The inverse of the input block value.
Example
void setup()
{
}
void loop()
{
think();
}
void think()
{
block_value = weighted_average(neighbor_data);
block_value = inverse(block_value);
}