ice-files/utils/iroblib.c
void powerOffRobot(void) {
  // If Create's power is on, turn it off
  if(RobotIsOn) {
    while(RobotIsOn) {
      RobotPwrToggleLow;
      delayMs(500);  // Delay in this state
      RobotPwrToggleHigh;  // Low to high transition to toggle power
      delayMs(100);  // Delay in this state
      RobotPwrToggleLow;
    }
  }
}
// Ensure that the robot is OFF.
Ensure that the robot is OFF.
Ensure that the robot is OFF .
void powerOffRobot(void) {
  if(RobotIsOn) {
    while(RobotIsOn) {
      RobotPwrToggleLow;
      delayMs(500);  
      RobotPwrToggleHigh;  
      delayMs(100);  
      RobotPwrToggleLow;
    }
  }
}
void powerOffRobot ( void ) { if ( RobotIsOn ) { while ( RobotIsOn ) { RobotPwrToggleLow ; delayMs ( 500 ) ; RobotPwrToggleHigh ; delayMs ( 100 ) ; RobotPwrToggleLow ; } } }
Ensure that the robot is OFF.
Ensure that the robot is OFF .
// If Create's power is on, turn it off // Delay in this state // Low to high transition to toggle power // Delay in this state