Scrolling Display help


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    39

    Default Scrolling Display help

    I am working on an applaction that has a test mode that I want to scroll a character test across 3 HDSP-2112 displays. I am using a PIC18F8722 micro, and I have a sample working the way I want it to, but I am wondering if there is a better way to do it.

    Here is the section of code

    CharTest:
    For Cnt1 = 0 to 7
    Char[CNT1]=" "
    NEXT


    While PortF.4=1

    For CNT1 = FirstChar TO LastChar
    Lookup CNT1,[" ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890'!@#$%^&*()/? ~"], Char1
    Char[Alpha] = Char1
    Alpha=Alpha+1
    next
    Alpha=0
    FirstChar=FirstChar+1
    LastChar=LastChar+1
    If Char[23] = EOM THEN
    Char[23]=" "
    FirstChar=0
    LastChar=23
    ENDIF


    For CNT2 = 1 to 3
    For CNT1= 24 to 31
    IF Alpha <=7 then DispAdd=$06
    IF (Alpha > 7) and (Alpha <= 15) then DispAdd=$05
    If (Alpha > 15) Then DispAdd=$03
    DigAdd=CNT1
    DigData=Char[Alpha]
    Gosub DisplayWrite

    Alpha=Alpha+1
    next
    Next
    Alpha=0
    Pause 150
    wend
    FirstChar=0
    LastChar=23
    Char1=" "
    Return

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Bruce has an example using those on his website: http://www.rentron.com/PicBasic/Movi...ge_Display.htm
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 20:07
  2. 5x7 LED Matrix Scrolling Display
    By roycarlson in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 4th August 2008, 23:50
  3. Replies: 2
    Last Post: - 14th July 2008, 22:11
  4. Led scrolling display: How to mirror characters?
    By mahia2005 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th May 2007, 03:25
  5. Scrolling text on display
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th August 2005, 15:13

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