In order to blink you probably want to use System.currentTimeMillis().
Something like:
if (i_should_be_blinking) {
  final boolean led_on = System.currentTimeMillis() % BLINK_INTERVAL_MILLIS
< BLINK_PULSE_WIDTH);
  led1.write(led_on);
  led2.write(led_on);
}


On Sun, Mar 16, 2014 at 4:41 AM, Cheizen <[email protected]> wrote:

> Hi guys i'm an industrial design student, im using the IOIO board to make
> working prototypes.
> I have some experience coding on action script 2 ( haha from back 2004)
> from some clases i took when i was a kid, but thats it.
> So coding in eclipse is a litte bit confusing, but i undestarnd the basics
> and the structure format. i've followed all the tuts, and read alot in the
> past few days, and today i decided to give it a try.
>
> I got the board runing with the hellow ioio source files, and moded the
> interface to be the way i wanted, haha but thats as far as i managed to get.
>
> The app im trying to code is really simple, i want to power 2 leds, and i
> have 3 buttons, "power" "left" "right"
>
> When power is toggled, i want both leds to be on, and when left or right
> are toogles i want them to blink.
> I atached the layout.
>
> So far im using the "power" button to power the test led on the board, but
> i havent managed to make it blink.
> Does anny one has a sample file to similar to what i want to do so i can
> study it?
> and i have never worked with this tipe of board, what pins would you guys
> recomend to use? i have the "ioio mint " type.
>
> English is not my native, so if something isnt clear i'll try my best to
> explain.
>
> Thanks!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to