Off Statement
Sets the specified motor's speed to 0%. Only 1 motor can be specified at a time. The Handyboard supports motor numbers 1 to 4.
Syntax
- off('Motor Number');
Example
- /*Move Motors 1 & 2 in Reverse for 5 Seconds.
- Then, turn for 3 seconds and stop.
- void main()
- {
- bk(1);
- bl(2);
- sleep(5.0);
- off(1);
- sleep(3.0);
- off(2);
- }