DMD Pattern Code Generator

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
Joined:Sun Nov 22, 2015 11:15 am
DMD Pattern Code Generator

Post by xeri » Sun Nov 22, 2015 11:27 am

For what it's worth, attached is a rough-and-ready code generator built with Excel and a VB Macro.

You draw the item that you want on the template worksheet (copy and paste the red ".") and then generate the pixel code (basically a bunch of dmd.setpixel() lines) via the Code worksheet.

It assumes use of the DMD2 code library but the VB is pretty basic and easy to follow/modify. The "mode" in the function is the DMDGraphicsMode (GRAPHICS_ON, GRAPHICS_OFF, etc) used to turn the pattern on, off, etc.

Not terribly efficient but hey, it works! I found it useful for mucking around and prototyping.

Hopefully someone else finds it helpful!
Freetronics DMD Pattern Generator.xls
(133KiB)Downloaded 347 times

Freetronics Staff
Freetronics Staff
Joined:Sun Jul 14, 2013 7:06 am
Location:Melbourne, Australia

Re: DMD Pattern Code Generator

Post by andrew » Sun Nov 22, 2015 9:05 pm

Well done, thank you for sharing that.

Post Reply