Creating and Writing to Editable Fields on 4x20 HCD44780-Based Character LCD


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Creating and Writing to Editable Fields on 4x20 HCD44780-Based Character LCD

    Quote Originally Posted by mikeRho View Post

    [B]What I need to do now is learn how to, using the on-board keypad, enter and edit editable fields on the LCD, then save the values to variables to be used in the program. Is there a document somewhere that covers this? Thank you for any and all input!
    As I understand it, the LCD is a display only device - you will not be able to edit anything on screen; rather, you must edit the underlying variables and display the changed values. What I mean is that if you are displaying variable "A" at position 1, changing the value of "A" and rewriting it to the LCD will be the "edit". You might then change only limited values - say as in setting a clock (which BTW there are plenty of examples of on the forums that should give you ideas how this may be done) or, perhaps, you might want to define an array as an area of video memory and reprint that as the values change.

    If you wish to incorporate some "rollback" feature (not finalize the change until approved, perhaps) you will copy the original value of "A" to say... "B", then display "B" until the final step where you write A=B to finalize - or B=A to rollback.

    Generally, I find numeric fields easier (less tedious) to "edit" as addition or subtraction may be used to scroll through a range of numbers, but alphanumeric isn't too bad - I designate an area in EEPROM and manipulate READ values to increment or decrement values rather than deal with alphas directly.

    HTH-

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Creating and Writing to Editable Fields on 4x20 HCD44780-Based Character LCD

    This article has some really good info on keypad entry. He shows how to count key presses
    and convert individual entries to a usable variables. Ignore the circuit since you are directly
    connecting your keypad.

    http://www.rambal.com/descargas/libr...%20Display.pdf

Similar Threads

  1. Big Digits on 4x20 LCD
    By Heckler in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2014, 23:18
  2. Trouble with Optrex 4x20 LCD module
    By Brock in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th January 2007, 01:49
  3. code for LCD-4x20 HD44780....HELP
    By Martin.... in forum mel PIC BASIC
    Replies: 13
    Last Post: - 24th July 2006, 22:31
  4. LCD 4x20 HD44780
    By inteco in forum mel PIC BASIC
    Replies: 13
    Last Post: - 27th June 2006, 16:52
  5. 4x20 LCD Display Problem
    By kayki in forum mel PIC BASIC
    Replies: 0
    Last Post: - 24th August 2005, 15:42

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