Max7219 always on
george miyagi
Posts: 48
i've been trying to get the MAX7219 to work on a LED matrix.
using the following code:
Clock CON 2
DPin CON 0
Load CON 1
LOW Load
SHIFTOUT DPin, Clock, MSBFIRST,[noparse][[/noparse]$090F\16]
HIGH Load
row VAR BYTE
col VAR BYTE
row=%10000000
Main:
row = row >>1
IF row = 0 THEN row = %1000000
FOR col = 1 TO 5
SHIFTOUT Dpin,Clock,MSBFIRST,[noparse][[/noparse]col, row]
PULSOUT Load,30000
PAUSE 50
NEXT
GOTO Main
problem is, the lights always stay on. i can see flickering (extra brightness) representing where they should be on.
but can't get them to switch off.
help please!!
(i just recently edited the code to intialize - the naimation plays superbright onto of all lights being on medium bright)
Post Edited (george miyagi) : 6/17/2005 9:46:23 AM GMT
using the following code:
Clock CON 2
DPin CON 0
Load CON 1
LOW Load
SHIFTOUT DPin, Clock, MSBFIRST,[noparse][[/noparse]$090F\16]
HIGH Load
row VAR BYTE
col VAR BYTE
row=%10000000
Main:
row = row >>1
IF row = 0 THEN row = %1000000
FOR col = 1 TO 5
SHIFTOUT Dpin,Clock,MSBFIRST,[noparse][[/noparse]col, row]
PULSOUT Load,30000
PAUSE 50
NEXT
GOTO Main
problem is, the lights always stay on. i can see flickering (extra brightness) representing where they should be on.
but can't get them to switch off.
help please!!
(i just recently edited the code to intialize - the naimation plays superbright onto of all lights being on medium bright)
Post Edited (george miyagi) : 6/17/2005 9:46:23 AM GMT
Comments