CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

About how to display the numbers in increment form

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bhaven



Joined: 26 Sep 2005
Posts: 10

View user's profile Send private message

About how to display the numbers in increment form
PostPosted: Mon Sep 26, 2005 1:01 am     Reply with quote

Hi,

In my projecvt i wanted to display the number on the LCD in an incrementing fashion i.e. when an key is pressed from the keypad the the number shown on the LCD should be incremented by one,as we can do it in simple C language by using the "FOR loop" & using a variable which is defined as an integer previously.


Any idea how to do it.Pls reply.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 26, 2005 6:39 am     Reply with quote

Here is a method.

1. Detect button press
2. Increment value
3. Display value
4. Set a timeout for say 1s
5. After timeout, increment value
6. Display value
7. Set a timeout for say 250ms
8. After timeout, increment value
9. Display value
10. Keeping going until button released.

If you want more help than this. Then post a small complete working program that will increment a value each time a key is pressed and display that on an LCD and I will show you how to modify it.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group