having problems with Hantronix 20x4 lcd


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,


    Your code:

    MENINC:
    if line = $81 and Screen = 2 or screen = 3 then Line2
    if line = $C1 and Screen = 1 or screen = 2 or screen = 3 then line3
    if line = $95 and screen = 1 or screen = 2 then line4
    if line = $D5 and screen = 2 then channels1 ' Scroll to page 3
    goto scren


    =============================

    I don't work with PICBasic Pro, I just read this forum for ideas.
    Anyway, I will try to help you. Below is my version of your code.
    (You will have to fix also your code at label MENDEC).

    PicBasic does not disntigush between upper or lower case, but please
    be consistent when you write your code. Example, labels in upper case,
    variable names in lower case.

    Best regards,

    Luciano

    Code:
    MENINC:
     
    IF line = $81 THEN
        If screen = 2 OR screen = 3 THEN LINE2
    ENDIF
    
    
    IF line = $C1 THEN LINE3
    
    
    IF line = $95 THEN
        IF screen = 1 OR screen = 2 THEN LINE4
    ENDIF
    
    
    IF line = $D5 AND screen = 2 THEN CHANNELS1
    
    
    GOTO SCREN
    Last edited by Luciano; - 22nd December 2005 at 13:24.

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  2. Pic18f452 with 20x4 LCD Help
    By djmachine in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th November 2008, 23:43
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07
  5. LCD 20X4 connect with DS1820
    By jojokatada in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th March 2005, 12:04

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