void setup() { } void loop() { act(); } void act() { set_drive(255);//Drive wait(2000);//Wait two seconds toggle_directions();//Switch directions }