To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 5169
5168  |  5170
Subject: 
Re: Scrolling through the LCD messages by the knob
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Mon, 18 Jan 1999 14:33:03 GMT
Original-From: 
Bernd Klein <Bernd.Klein@pdv%nospam%-online.de>
Viewed: 
922 times
  
Hi Gustav,

ich habe für mein HB ein Menüprogramm geschrieben, mit dem man mehrere
Menüpunkte durchscrollen kann (Parametereingabe etc.)

Falls Du noch interesse hast, sag Bescheid dann kram ich mal den Sourcecode
bei mir wieder aus !

Tschau

Bernd

Curt Mills, WE7U schrieb:

On Fri, 15 Jan 1999, Gustav Schulz wrote:

i am looking for a program to use the knob for scrolling through
messages.

anyone already written such a program ?

Yes, and it is totally trivial to do so.  I don't have my sources here at
the moment, but it is roughly like this:

c = readknob();  /* or whatever the cmd is for reading it */

if ( c < 64 )
{
  print "a";
}
else if ( c < 128 )
{
  print "b";
}
else if ( c < 192 )
{
  print "c";
}
else
{
  print "d";
}

or set a variable inside each if block and then run through a switch
statement later when you're doing your printing.

Sorry if my C is rusty.  I do too many languages nowadays...

Curt Mills, WE7U                         hacker.NO_*SPAM@tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U



Message is in Reply To:
  Re: Scrolling through the LCD messages by the knob
 
(...) Yes, and it is totally trivial to do so. I don't have my sources here at the moment, but it is roughly like this: c = readknob(); /* or whatever the cmd is for reading it */ if ( c < 64 ) { print "a"; } else if ( c < 128 ) { print "b"; } else (...) (26 years ago, 15-Jan-99, to lugnet.robotics.handyboard)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR