Hi!
Today I connected an 3X3 LED Matrix to my Arduino UNO. Fot the shake of understanding and simplicity, I named the Anode Rows 1, 2, 3 and Cathode Columns A, B, C:
[A] B
| | |
| | |
[1]----------O1------------O2-------------O3
| | | <-------------- LIKE THIS
| | |
[2]----------O4------------O5-------------O6
| | |
| | |
[3]----------O7------------O8-------------O9
Then I set:
1 as pin 0 A as pin 3
2 as pin 1 B as pin 4
3 as pin 2 C as pin 5
And then I tried it. I wanted to turn on LED 1, so I set pin 0 --> HIGH and pin A --> LOW, but I ended up lighting up LEDs 2 and 3. I immediately thought that there was a problem in the wiring of my LEDs, but there wasn't. Next, I tried not to give the LOW command and I only set pin 0 --> HIGH. Guess what..., the same thing hapened; LEDs 2 and 3 were also on. What I think is that when I give no commands to the pins, they are set by themselves to LOW (Ground) state. Taking this into account, I then set pin 0 --> HIGH, pin B --> HIGH and pin C --> HIGH and... SUCCESS! Only LED 1 was on!
So, my question is:
If no commands are given to the pins, are they set to LOW (Ground) state??? If not, is my Arduino UNO R3 faulty????