Matrix Library

Hey guys, I'm setting up an LED Matrix using a Maxim 7219, simple enough. It is all rigged up correctly, i just can not get the code to compile in the IDE. Using the following code :

#include <Matrix.h>

Matrix myMatrix = Matrix(10, 9, 8);

void setup()
{
}

void loop()
{
myMatrix.clear(); // clear display

delay(1000);

// turn some pixels on
myMatrix.write(1, 5, HIGH);
myMatrix.write(2, 2, HIGH);
myMatrix.write(2, 6, HIGH);
myMatrix.write(3, 6, HIGH);
myMatrix.write(4, 6, HIGH);
myMatrix.write(5, 2, HIGH);
myMatrix.write(5, 6, HIGH);
myMatrix.write(6, 5, HIGH);

delay(1000);
}

I get the following Errors:

Applications/arduino-0007/lib/targets/libraries/Matrix/Matrix.o: In function `Matrix::write(unsigned char, unsigned char, Sprite)':

/Applications/arduino-0007/lib/targets/libraries/Matrix/Matrix.cpp:206: undefined reference to `Sprite::read(unsigned char, unsigned char) const'

/Applications/arduino-0007/lib/targets/libraries/Matrix/Matrix.cpp:205: undefined reference to `Sprite::width() const'

/Applications/arduino-0007/lib/targets/libraries/Matrix/Matrix.cpp:204: undefined reference to `Sprite::height() const'

Couldn't determine program size: tools/avr/bin/avr-size: '/tmp/build16213.tmp/hello_matrix.hex': No such file

I have no idea what that means. Can anyone help?

I think you need to include the Sprite library too, even if you're not using it directly.

I just tired including the Sprite library and now i get:

Couldn't determine program size: text data bss dec hex filename

...?

Edit: i tried uploading it anyways because the IDE said it finished compiling, but nothing came on the matrix, i know its wired correctly because I ran the code from http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1178916503 and it ran correctly

Hmm... it sounds like it uploaded fine. The error message you got is not something that would stop the code from working, it just means that the environment couldn't figure out how big your compiled sketch was.

Actually, the problem might be in the documentation. I think the pins should be passed in as data, clock, load (even though the documentation says data, load, clock). Can you trying switching the last two pins and see if it works? If so, I'll try to get the documentation corrected.

Yeah you were right the pin order was wrong, thanks alot.

Cool, thanks for me letting me know. I posted to the Wiring forum asking Hernando to correct the documentation.