LCD BARgraphs


Closed Thread
Results 1 to 40 of 233

Thread: LCD BARgraphs

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Here's some sample code (no fancy animations):

    Code:
    'DEFINE NEWHAVEN_DISPLAY 1   'uncomment if needed
    INCLUDE "LCDbar_INC_MOD2.bas"
    
    wCounter VAR WORD
    
        LCDOUT $FE, $01
        PAUSE 100
    
    MAIN:
        FOR wCounter = 0 to 100
            PAUSE 50
            LCDOUT $FE, $80, DEC3 wCounter
        ;@  BARgraph   Value,   Row, Col, Width, Range, Style, RtoL
        @   BARgraph  _wCounter,   1,  5,    13,   100, lines, 0
        NEXT wCounter                                                             
        
        FOR wCounter = 100 to 0 STEP -1
            PAUSE 50
            LCDOUT $FE, $80, DEC3 wCounter
        ;@  BARgraph   Value,   Row, Col, Width, Range, Style, RtoL
        @   BARgraph  _wCounter,   1,  5,    13,   100, lines, 0
        NEXT wCounter
    
    GOTO MAIN
    Last edited by SteveB; - 28th November 2012 at 05:33.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Nicely done Steve.

    It works great.
    DT

  3. #3
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Thanks Darrel.

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

Members who have read this thread : 2

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