Go Down

Topic: 5x7 LED Matrix Issue (Read 4 times) previous topic - next topic

adamedelberg

#25
Oct 25, 2012, 07:35 pm Last Edit: Oct 25, 2012, 07:38 pm by adamedelberg Reason: 1
Code: [Select]

const int rows[] = { 9, 14, 12, 8, 1, 7, 2 };
const int cols[] = { 13, 3, 4 , 10, 6};

void setup()
{
 for (int c = 0; c < 7; c++)
 {
   pinMode(cols[c], OUTPUT);
   digitalWrite(cols[c], LOW);
 }

 for (int r = 0; r < 5; r++)
 {
   pinMode(rows[r], OUTPUT);
   digitalWrite(rows[r], LOW);
 }
void loop(){
}


CrossRoads

LIttle light on the application code here 8)
Code: [Select]

void loop(){
}
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

adamedelberg

Just really want to get it working first ;P

adamedelberg

when i execute that code, this is the result:

Grumpy_Mike

Quote
We need to know exactly what it does and what you expect it to do.

I would expect from that code that all the LEDs should be off. What do you expect?

As all the LEDs are not off then you have wired it up incorrectly.

Go Up