
Originally Posted by
Nicmus
Hi Isaac,
You have two control ways for this device: decode B and no decode.
If you stay in decode mode (and I see you using the device in this mode) you can send character 10 and only segment g will be ON (see table 5 in the data sheet).
If you go in no decode mode you can individually control each segment.
Regards,
Nick
Big Thanks to you Nick
you were correct sending the character 10 and only segment g is ON it works
i used this loop below
Code:
Displayg:
Max_Dp=6 ' Display number for Decimal Point
Digit=0 ' Start at Digit 0 of Max_Disp Variable
For Position=6 to 1 step -1 ' Start at Farthest Right of Display
Register=Position ' Place Position into Register
R_Val=Max_Disp Dig Digit ' Extract the individual numbers from Max_Disp
R_Val=10 ' Display ------ only g is on
If Digit=Max_Dp then R_Val.7=1 ' Place the decimal point, held in Max_DP
Gosub Transfer ' Transfer the 16-bit Word to the MAX7219
If Digit>=5 then Digit=0 ' We only need the first 6 digits
Digit=Digit+1 ' Point to next Digit within Max_Disp
Next Position ' Close the Loop
Return
My next problem now is how to display 6 digits like 123456 i have being going round in circles all night as there is greater then a word variable can handle
any ideas would be well appreciated
Regards
Isaac
Bookmarks