chipKIT® Development Platform

Inspired by Arduino™


Created Sun, 22 Jan 2012 12:17:35 +0000 by yoshco


Sun, 22 Jan 2012 12:17:35 +0000

i think i've heard this is coming anyways, but for now i could use some help porting this lib.

BTW. this elapsed.h lib seems to work ok

if (t2.intervalMs () > 200)   // time up?
    digitalWrite(2, !digitalRead (2));   // toggle the LED
    t2.reset ();   // reset the timer
    }  // end if time up


Sun, 22 Jan 2012 14:08:39 +0000

I do it like this

int time1X=0,oldtimeX=0,x=0;
void loop()

if you want to do 2 things like on and off a led, add another variable and an if: c=0 do that and c++, c=1 do the other thing and c--.