LCDOUT -- lose the zero ?


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: LCDOUT -- lose the zero ?

    I use the following code to display a word variable which contains the value between 0 and 100

    Code:
    If maxbright  = 100 then
    LCDOut $FE,$c0,#maxbright,"%"
    endif
    
    If maxbright  =0 or maxbright <10 then
    LCDOut $FE,$c0,dec1 maxbright,"% "
    endif
    
    if maxbright >=10 and maxbright <100 then
    LCDOut $FE,$c0,dec2 maxbright,"%   "
    endif
    Just change maxbright for your variable and you should be fine
    Last edited by Scampy; - 11th July 2017 at 09:14.

Similar Threads

  1. LCdout
    By lerameur in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd December 2006, 16:14
  2. 8bit LCDout vs 4bit LCDout
    By keithdoxey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th May 2006, 12:16
  3. Lcdout
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th February 2006, 01:39
  4. LCDOUT help
    By f6ggy in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th October 2003, 12:51

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