TinyCircuits Forum

General Category => General Discussion => Topic started by: kingoddball on May 12, 2014, 02:59:33 AM

Title: TinyShield MATRIX Guide?
Post by: kingoddball on May 12, 2014, 02:59:33 AM
Hello,
Just received my Matrix shield... Does anyone have a tutorial on how to use this with the TinyDuino?


IF POSSIBLE; Something like a basic scrolling text?

THANKS!
Title: Re: TinyShield MATRIX Guide?
Post by: Ogre Lawless on May 20, 2014, 12:43:42 AM
I found myself in the same boat: it works with the LoL Shield library with some modifications and that has a font example sketch that works well enough.

I made the following modifications inside the library:

In Charliplexing.h:
#define DISPLAY_COLS 6     // Number of columns in the display
#define DISPLAY_ROWS 9   


In Charlipexing.cpp:
const LEDPosition PROGMEM ledMap[54] = {
  L(5,6), L(8,6), L(6,9), L(2,7), L(8,9), L(2,3),
  L(6,5), L(6,8), L(9,6), L(7,2), L(9,8), L(3,2),
  L(5,7), L(7,6), L(6,4), L(3,7), L(8,4), L(3,4),
  L(7,5), L(6,7), L(4,6), L(7,3), L(4,8), L(4,3),
  L(5,8), L(2,5), L(6,3), L(4,7), L(8,3), L(2,9),
  L(8,5), L(5,2), L(3,6), L(7,4), L(3,8), L(9,2),
  L(5,9), L(3,5), L(6,2), L(9,7), L(8,2), L(3,9),
  L(9,5), L(5,3), L(2,6), L(7,9), L(2,8), L(9,3),
  L(5,4), L(4,5), L(7,8), L(8,7), L(9,4), L(4,9),
};


Not all the LOL examples work.  I've found you can use:


These don't work as well:

Good luck!  I'll see if I can't get this and some other goodies available online somewhere:  attachments are apparently not configured here :(
Title: Re: TinyShield MATRIX Guide?
Post by: Ogre Lawless on May 20, 2014, 01:50:43 AM
I've managed to get a library that's a downscaled fork the LoLShield library and the above modifications along with graph paper and pinout templates for the shield here:

https://github.com/OgreLawless/tinyduino-matrix

General library installation information here:
http://arduino.cc/en/Guide/Libraries
Title: Re: TinyShield MATRIX Guide?
Post by: pashakun on November 25, 2015, 09:17:15 AM
Ogre,

Thank you for the new library.

I realize I'm late to the party. But Did you have have any examples that might help me make sense of how I can use it?

Thank you in advance.