Can we suppress leading zero's in LCDOUT?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sayzer View Post
    PICn-It,

    MYNUMBER VAR BYTE


    With that, you can get max. 255.

    ----------------------------------------------
    Yes, good catch.

    In my code, currently I can't figure out how to steady up the 10-bit ADC reading, so I temporarily REM'd those lines:
    Code:
    ADC_BITS 10
    MYNUMBER VAR WORD
    and temporarily put in:
    Code:
    ADC_BITS 8
    MYNUMBER VAR BYTE
    while I work out the display screens and presentation. The CASE statement based on your IF/THEN code posted above seems to work great, thank you.
    Last edited by PICn-It; - 16th December 2009 at 16:11.

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  2. Suppress leading zeros
    By Adrian in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th June 2008, 21:45
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 02:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 15:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

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