Hi,
I need a piece of code - in Mikrobasic - to move a led (from a 8x8 led matrix). I will use a pic16F887 and I will try to simulate that in Proteus. Can somebody help me with that.
My setup is:
1- LED-Matrix Row pins to PORTA
2- LED-Matrix Column pins to PORTB 330Ohm resistors.
What I wrote until now is like that
Thank you
Gabi
I need a piece of code - in Mikrobasic - to move a led (from a 8x8 led matrix). I will use a pic16F887 and I will try to simulate that in Proteus. Can somebody help me with that.
My setup is:
1- LED-Matrix Row pins to PORTA
2- LED-Matrix Column pins to PORTB 330Ohm resistors.
What I wrote until now is like that
How I can wrote a procedure to automate this procedure?program matrix
'porta - coloana
'portb - linie
dim i as byte
main:
TrisA=0
TrisB=0
while 1
PortA = 0x01
PortB=0x7f
delay_ms 200
PortA = 0x02
PortB=0xbf
delay_ms 200
PortA = 0x04
PortB=0xdf
delay_ms 200
PortA = 0x08
PortB=0xef
delay_ms 200
wend
end.
Thank you
Gabi