Go Down

Topic: Scrolling matrix display (Read 3 times) previous topic - next topic

MobileWill

#15
Sep 17, 2012, 11:06 pm Last Edit: Sep 17, 2012, 11:08 pm by MobileWill Reason: 1
I wondered about the SPI thing. I thought the max7219 was non-standard SPI unlike the max7221. But I see both ways of talking to it in different sketches. Maybe we could just modify the LEDCONTROL library to use SPI in the library.


Btw I figured out your font table and how that all works. I noticed ~ doesn't work but it should. What is the highest ASCII charc you use? I think I figured it was 32-136. Which after 127 it is the extended charc which doesn't display correctly, so I must be missing something.

RIght now I am working on a breadboard but the PCB's should be here in a few weeks.

Let me know if I can help with anything.

Thanks again, this has really helped a lot more than any other examples. I spent all weekend on this.

Edit: I have to admit the other ones that where smooth didn't use the LEDCONTROL library and just did SPI inside the sketch. Would be nice to see a library that uses SPI.
Current Projects:                    Arduinos:
Security Robot Tank               Uno
Security Robot II 4WD            Mega2560

http://mobilewill.blogspot.com

MobileWill

I just realized something, if we use SPI then the pin assignments will change right? Oops, I guess time to update my PCB for the next round but I can tweak the current one.
Current Projects:                    Arduinos:
Security Robot Tank               Uno
Security Robot II 4WD            Mega2560

http://mobilewill.blogspot.com

JoeN

#17
Sep 17, 2012, 11:59 pm Last Edit: Sep 18, 2012, 12:02 am by JoeN Reason: 1
I never tried a tilde.  I got the character set from a font generation program called cv_fonted which is here:

https://forum.crystalfontz.com/showthread.php?3619-Bitmap-font-editor-for-graphic-LCD

The font data for character 126 is 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, so clearly that is blank.  If you want a tilde either download cv_fonted and use the editor or make a guess and roll your own.  This data is row-wise so here is a guess:

Code: [Select]
12481248
________  0x00
________  0x00
________  0x00
_XX_____  0x06
X__X__X_  0x49
____XX__  0x30
________  0x00
________  0x00


{0x00, 0x00, 0x00, 0x06, 0x49, 0x30, 0x00, 0x00}

There is a newer version of cv_fonted which, while it is a lot better, it doesn't have an 8x8 font which is what I wanted.
I have only come here seeking knowledge. Things they would not teach me of in college.

MobileWill

Thanks. Then the length would be 8 right?

So are the ones after the tilde the extended ascii characters or you just used whatever it generated?


I might try this font table

http://www.gammon.com.au/forum/?id=11516

Of course I can't use the whole table since it won't fit in memory, well it might on the 32u4, which I will be switching too once I get one.
Current Projects:                    Arduinos:
Security Robot Tank               Uno
Security Robot II 4WD            Mega2560

http://mobilewill.blogspot.com

CrossRoads

So it's a tradeoff - 64 bytes (of 2K)  and fast flicker free operation, or flickering operation with all kinds of data processing going on every byte.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up