Gadgeteer LED Matrix Module Demo
- Posted: Jun 14, 2012 at 7:15 PM
- 4,418 Views
Right click “Save as…”
Quick demo of the new (NOTE: this module only works with .NET Micro Framework 4.2, and the driver is still in beta at the time of this writing) LED Matrix module for .NET Gadgeteer, manufactured by GHI Electronics. The module, which is based on the DaisyLink protocol, and contains its own microprocessor (which can be flashed and reprogrammed, if desired) provides an 8x8 matrix of red LEDs for displaying patterns or glyphs.
In this video, I am using a helper class I wrote to display "HELLO WORLD". The driver for the module exposes a single API, DrawBitmap, which takes as an argument a byte array representing the on/off pattern for the LEDs. To make working with the module simpler, I wrote a class with a series of static properties that return the byte array for the uppercase English letters A-Z and numbers 0-9.
With my helper class, I simply create an ArrayList of the letters I want to display, then loop through the ArrayList, displaying each letter in turn. I've named the letters using the NATO phonetic alphabet to make the API intuitive without using single letter property names.