I just bought a DMD and was playing around with the included library.
It was very nice but I thought I could add a few features
The main change is replacing the drawCharacter_* functions with a generic drawChar function.
There is now the ability to load a font via selectFont (three fonts included, Arial_14, Arial_bold_14 and System5x7)
After calling that function any text written will be output in that font.
I have also added a drawString function that allows you to write a full string at once
Finally I have added scrolling text (AKA marquee) via the 'drawMarquee' and 'stepMarquee' functions
By using this with the Arial_bold_14 font it makes quite a good notice display.
I have updated the examples included in the original library to use these new functions.
This is just a first go at adding some features so let me know if anyone has any suggestions for extra stuff
It can be downloaded from https://github.com/cjd/DMD
Edit: Library now supports multiple gray levels, multiple buffers and screen transistions
See http://www.adebenham.com/2012/04/dmd-sc ... ansitions/