bartoszbielawski / LEDMatrixDriver

A replacement for Arduino's LedControl library
MIT License
74 stars 25 forks source link

How to #7

Closed anouanou closed 7 years ago

anouanou commented 7 years ago

Hi guys

I saw this library on Arduino and I wanted to know how do you make it work with Arduino Uno for example. Because I have the LedControl library which works perfectly but can't make this one work for me with all of the examples.

How should I connect my wires on the Arduino ?

"const uint8_t LEDMATRIX_CS_PIN = 9;"

I think that it doesn't work because of this line that I may have not configure properly.

Thank you

bartoszbielawski commented 7 years ago

Hi,

From what I see it should be clock (SCK or CLK) to pin 13, DIN to pin 11 and then CS (SS) to wherever you choose (except for pin 10 and 12). 9 should be fine. Don't forget GND and 5V.

You can also try to lower SPI baudrate in the spi settings to something lower (like few hundred kHz). The default I use for ESP 8266 is 5 MHz and it could be too much for UNO.

Cheers, Bartosz

anouanou commented 7 years ago

Thank you it works perfectly now. Problem was that CS was connected to pin 10 which was forbidden.

bartoszbielawski commented 7 years ago

I'm glad it worked for you, cheers :)