About how to display the numbers in increment form
Posted: Mon Sep 26, 2005 1:01 am
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
Posted: Mon Sep 26, 2005 6:39 am
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.
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