Subject:
|
Re: IC question
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Sat, 27 May 2000 07:12:50 GMT
|
Original-From:
|
Will Bain <wbain@e%IHateSpam%2egolf.com>
|
Viewed:
|
1093 times
|
| |
| |
You might try something like:
while( 1 ) {
if( start_button() ) printf( "you pressed the start button\n" );
else printf( "\n" );
msleep( 250L );
}
or simply:
{ start_press(); printf( "you pressed the start button\n" ); }
-- Will
Todd Ahlstrom wrote:
>
> Just got my handyboard, and I am new to programming, so I have a
> probably simple question for you all. I have been playing around with
> IC trying to get responses on the LCD from start button presses. if I
> send the following on the IC command line :
> {if (start_button()) printf("you pressed the start button\n");}
> It will work only if I am holding the start button when I press return
> and it sends the code to the HB. What I want to know is how do I get it
> to react to a button press. What I was hoping for was to send the code
> then have the HB wait for me to press the button to execute the printf.
>
> Thanks,
> Todd
+---------------------------------------------------------+
| ^^ <^ ^> |
| / òó ó°° \ |
| / =Y= U \ |
| Wendy, Will, Tatoosh & Tenzing |
+---------------------------------------------------------+
You can't say civilization isn't advancing; in every war
they kill you in a new way -- Will Rogers
|
|
Message is in Reply To:
| | IC question
|
| Just got my handyboard, and I am new to programming, so I have a probably simple question for you all. I have been playing around with IC trying to get responses on the LCD from start button presses. if I send the following on the IC command line : (...) (25 years ago, 27-May-00, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|