CODE
set_interval(milliseconds, function)
Description
Allows for you to specify a function to be called after a given interval until clear_interval() has been called.
Parameters
millisecond An integer, the number of milliseconds in between function calls.
function The function that should be called after the specified interval until clear_interval() is called
Compatibility
All Blocks
Example
    //Forward declare any custom functions
    void my_function(void);
    void setup()
    {
        set_interval(2000, my_function);
    }
    void loop()
    {
        act();
    }
    void act()
    {
        set_drive(255);
    }
    void my_function(void)
    {
        //This function will be called every two seconds.
        toggle_directions();
    }