Manipulating keypad presses


Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Oct 2008
    Posts
    52

    Default Manipulating keypad presses

    Hello:

    I am scanning a keyad and am receiving and converting the rows and columns to numbers. I am wanting to display the numbers from 0 to 360 on an LCD. It is working as I am using a for next loop to put the key presses into an array. I then multiply the first one by a hundred and so on. But, if I only enter a 2 digit number I have to lead it with a zero, Is there and easier way?

    Let me clarify this a little: I actually want to save say the number 320 in a variable after getting it from a keypad one press at a time and use it to control PWM cycles.

    Thanks, Don
    Last edited by dbachman; - 3rd January 2011 at 03:52.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts