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

  1. off('Motor Number');

Example

  1. /*Move Motors 1 & 2 in Reverse for 5 Seconds.
  2. Then, turn for 3 seconds and stop.
  3. void main()
  4. {
    1. bk(1);
    2. bl(2);
    3. sleep(5.0);
    4. off(1);
    5. sleep(3.0);
    6. off(2);
  5. }