8x8 Scrolling LED display (Simple example)


Results 1 to 40 of 69

Threaded View

  1. #22
    Join Date
    Mar 2009
    Posts
    48


    Did you find this post helpful? Yes | No

    Default Re: 8x8 Scrolling LED display (Simple example)

    hello again I menaged to display letter M on 5x7 dot matrix with this changed code is this a good solution
    Code:
    ' SIMPLE 8X8 LED MATRIX SCROLLING EXAMPLE
    ' 16F872 External 4MHz Xtal Osc
    ' LED Matrix columns are conected to PORTC pin rc0 via ULN2004AN and CD4017 to 0v.
    ' RC1 reset for 4017
    ' LED Matrix rows conected to PORTB via 100 ohm resistors (Resistor value dependant on LEDs used)
    ' RB0 - top row
    ' MCLR (pin1) connected via 4K7 to +5v supply.
    '
    ' today
    '***************************************************************************************
    Device 16F877A
    TRISB = %00000000
    TRISC = %00000000
    PORTB=0
    PORTC=0
    	kolona		var	Byte
    	brojac		var	Byte
    	scan 		var Byte
    	scroll		var	Byte
    	leddata		VAR Byte[5]
    
    START:
    
    	Clear  				
    
    	leddata[0] = $FF	'start of 'm'
    	leddata[1] = $40 
    	leddata[2] =$20
    	leddata[3] =$40
    	leddata[4] = $FF
    LOOP:
     
    	'For scroll =  0 To 34
    		
    	For scan = 0 To 12	' scan speed
    		PORTC.1 = 1  'reseting 4017
                PORTC.1 =0
    			For kolona = 0 To 4
    			PORTC.0 = 1 'clock 4017
                    PORTC.0 =0
                    PORTB = leddata[kolona]
    				DelayUS 500
                    PORTB=0				
    			Next
    	Next 
    
    	GoTo START
    End
    any idea how to change letters????
    Last edited by xxxxxx; - 6th February 2011 at 13:42.

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. MY FIRST scrolling 8X8 LED
    By earltyso in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2008, 16:23
  3. 5x7 LED Matrix Scrolling Display
    By roycarlson in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 4th August 2008, 23:50
  4. Replies: 2
    Last Post: - 14th July 2008, 22:11
  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 : 1

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