set_rotate_direction(direction)
Description
Can be called from a Rotate Cubelet to change the direction of rotation.
Parameters
direction Can be either 'FORWARD' or 'BACKWARD'
Compatibility
Rotate Blocks
Example
void setup()
{
set_rotate_direction(BACKWARD);
}
void loop()
{
think();
act();
}
void think()
{
calculate_block_value();
}
void act()
{
set_rotate(block_value);
}