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