CODE
wait(milliseconds)
Description
Allows execution to be suspended for the provided number of milliseconds.
Parameters
millisecond The number of milliseconds to wait before proceeding
Compatibility
All Blocks
Example
    void setup()
    {
    }
    void loop()
    {
        act();
    }
    void act()
    {
        set_drive(255);//Drive
        wait(2000);//Wait two seconds
        toggle_directions();//Switch directions
    }