Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Jaime Patarroyo

Pages: [1]
1
Contributed Library Questions / Adafruit LED Backpack library
« on: June 22, 2014, 08:51:03 PM »
Hello,
I'm trying to get this Adafruit library (https://github.com/adafruit/Adafruit-LED-Backpack-Library) to work with Wiring but I get an really confusing error when I try to run any of the examples. I tried compiling it in the Arduino IDE and it works fine. I'm attaching a picture of the error.

Please help!

Thanks,
Jaime.
2
Hello,

So… I bought two of this:
http://linksprite.com/wiki/index.php5?title=LED_Matrix_Kit

And I have them connected like this:

WIRING --- MATRIX 1 (J1)
       5V --- VCC
    GND --- GND
    PIN8 --- DIN
    PIN9 --- CS
  PIN10 --- CLK

MATRIX 1 (J2) --- MATRIX 2 (J1)
              VCC --- VCC
             GND --- GND
           DOUT --- DIN
                CS --- CS
              CLK --- CLK

First I wanted to use the Matrix library but none of the examples worked (nothing happened) even if I connected just one Matrix.

Here is the code I was using (the website example changing the pins):

#include "Binary.h"
#include "Sprite.h"
#include "Matrix.h"

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

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);
}

Then I tried the example code given by LinkSprite in their wiki (http://linksprite.com/wiki/index.php5?title=LED_Matrix_Kit) and it worked. But both matrix showed me the same thing.

Can anyone help me by telling where how should I change the content of the second matrix?
Or giving me any ideas to get the Matrix library to work?

I'm adding a picture of my wiring.

Thanks!

Pages: [1]