- This topic has 0 replies, 1 voice, and was last updated 14 years, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › NewbieL Help with keypad and LCD program 8051
I am starting to learn C and am studying the lcd keypad program (project MC032) but I am not sure how to go about this.
if C3/R1 (#2) is pressed move cursor to the right one digit unless there are no more digits
if C2/R1 (#1) is pressed move cursor to the left one digit unless there are no more digits
Which means that 2nd and 3rd digits may have different settings depending on other digits setting.
when C3/R2 (#5) is pressed it takes all of the individual numbers, converts it to a single interger and stores it to a variable i.e. “2.65” or “4.73”
The second line on the LCD will display [ Num of Photos:030 ]
I would like to do the same thing that was done for the first line.
Range is 002 -250.
I am not sure as to how limit the ranges and change the inidiviual numbers
She puts in the number of inches of travel and number of photos then the controller moves the camera to each step, a mini relay will activate
the remote shutter release. She gets to decide the number of steps and distance.