toggle_directions()
Description
Can be called from either a Drive Cubelet or a Rotate Cubelet to switch the direction that the block drives or rotates.
Compatibility
Drive Blocks, Rotate Blocks
Example
void setup()
{
toggle_directions();
}
void loop()
{
think();
act();
}
void think()
{
calculate_block_value();
}
void act()
{
set_drive(block_value);
}