Mode:
Duration:
1
2
3
4
5
6
7
8
9
VAR activateMotor = TRUE;
PROC controlMotor() {
IF activateMotor THEN MOTOR_ON(); ELSE MOTOR_OFF();
PRINT("Motor status: ", activateMotor);
}
controlMotor();
activateMotor = FALSE;
controlMotor();Coding works best on desktop or with an external keyboard.