LCDOUT 4-bit data on 8-bit setting


Results 1 to 7 of 7

Threaded View

  1. #4
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by breesy
    or atleast fill it with blank characters?
    Not efficient and code heavy but works – there must be a better way?
    Code:
    Line2Clr Var Byte
    X var Line2Clr 'reuse variable with alias to save RAM
    
    Line2Clr = 148 ' clear line 3 or 4x20 LCD (for example)
    Gosub ClrLine
    
    rest of program here
    
    ClrLine: ' subroutine
      LCDOUT $FE,Line2Clr,32,32	' clear 148 and 149 with 32 (ascii blank)
      FOR X = 0 to 8 ' clear rest of line
        LCDOUT 32,32
      NEXT X
    RETURN
    Paul Borgmeier
    Salt Lake City, Utah
    USA
    Last edited by paul borgmeier; - 26th June 2006 at 08:01.

Similar Threads

  1. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  2. Making a menu
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 36
    Last Post: - 12th November 2008, 19:54
  3. MAX1247 4-Channel, 12-Bit ADC
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th December 2006, 23:38
  4. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 19:42
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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