hello again I menaged to display letter M on 5x7 dot matrix with this changed code is this a good solution
any idea how to change letters????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




Bookmarks