set_flashlight(block_value)
Description
Sets how bright the Flashlight Cubelet is
Parameters
block_value The value to set the flashlight to. A number 0-255. The larger the number the brighter the flashlight.
Compatibility
Flashlight Blocks
Example
void setup()
{
}
void loop()
{
think();
act();
}
void think()
{
block_value = weighted_average(neighbor_data);
}
void act()
{
set_flashlight(block_value);
}