Cubelets API Documentation 2.0
C API
Loading...
Searching...
No Matches
maximum.c File Reference

Detailed Description

#include "cubelet.h"
void setup()
{
}
void loop()
{
think();
}
void think()
{
if(!block_value_override)
{
block_value = maximum();
}
}
uint8_t maximum(void)
Returns the largest block value from neighboring blocks.
void setup()
Function ran just a single time. Used for setting up variables or timers.
Definition bargraph.c:3
void think()
Used in Action and Think Cubelets to calculate their block value.
Definition bargraph.c:14
void loop()
The loop() function gets called repeatedly while a Cubelet is powered on.
Definition bargraph.c:8