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 / 5140
5139  |  5141
Subject: 
Re: Scrolling through the LCD messages by the knob
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 15 Jan 1999 21:36:09 GMT
Original-From: 
Curt Mills, WE7U <hacker@tc#AvoidSpam#.fluke.com>
Viewed: 
765 times
  
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 has 1 Reply:
  Re: Scrolling through the LCD messages by the knob
 
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 (...) (26 years ago, 18-Jan-99, to lugnet.robotics.handyboard)

Message is in Reply To:
  Scrolling through the LCD messages by the knob
 
Hi, i am looking for a program to use the knob for scrolling through messages. i really need this, because i have to output more than 32 chars (and there isnt enough space for a larger display ). i have read about using the knob for scrolling on the (...) (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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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