how to print a string in 16*16 Dot Matrix from AVR

I want to output the string "LED GAME" as indicated in picture . But in Dot matrix , there are only 16 + 16 = 32 pins . is there any way to print a string from avr to dotmatrix ?


Most LED matrixes are internally built up like this example here:

For a 16x16 LED matrix you thus have 16 pins for the rows and 16 pins for the columns. To see how your specific matrix is built up, you'll have to find its datasheet.

To write anything on the display, you will set the first row to ON, all others to OFF and activate the cols you need. After a delay, you will set the first row to OFF, the second row to ON and activate the cols you want to see in the second row. You will iterate through all rows like this. As the delay will be pretty short, your eyes aren't fast enough to see that the LEDs are off most of the time.

I would suggest to use a timer interrupt on you microcontroller and iterate through the rows in the interrupt routine. That way you can easily use the microcontroller for other things without worrying too much about timing issues.

Need Your Help

Bash- loop through each character in a string to check for specific pattern

regex string bash loops character

So I need to check each character in a string- the input- to see if it matches/doesn't match a pattern.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.