public void loop() throws ConnectionLostException, InterruptedException {
led_.write(false);
Thread.sleep(1000);
led_.write(true);
Thread.sleep(1000);
}
On Mon, Jun 16, 2014 at 10:14 PM, syaz fyp <[email protected]> wrote:
> i was told that this particular code is the one that executes when i press
> the *toggle button* using the IOIOHelloWorld app.
>
>
> *public* *void* loop() *throws* ConnectionLostException {
>
> led_.write(!button_.isChecked());
>
> *try* {
>
> Thread.*sleep*(100);
>
> } *catch* (InterruptedException e) {
>
> }
>
> }
>
>
> Im just experimenting and trying the adapt to IOIO world as its something
> new to me. I just wanna make the "stat" led blink. How do i start?
>
>
> thanks in advance guys
>
> --
> 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.