Changes

Jump to: navigation, search

Week Z

70 bytes added, 16:06, 26 May 2009
smiley
</pre>
==== smiley ====
<pre>
/*
* Multiplexer
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
1, 01, 01, 01, 1, 0, 1, 0, 0, 0, 1, 0, 10, 1, 1, 0 };
void setup() // run once, when the sketch starts
pinMode(resetPin, OUTPUT);
// set row pins to be outputs
for(int j=0;j<7;j++)
pinMode(j, OUTPUT);
}
void loop() // run over and over again
{
for (int icol=0; icol<5; icol++)
{
for(int jrow=0;jrow<7;jrow++) digitalWrite(jrow, img[icol+jrow*5]);
delay(1);
// send the next clock pulse // (to move the decade counter digitalWrite(clockPin, HIGH); // sets the LED on digitalWrite(clockPin, LOW); // sets the LED off
};
// reset the counter to the first column
digitalWrite(resetPin, HIGH);
digitalWrite(resetPin, LOW);
}
</pre>
=== See Also ===
Examples -> Library-Matrix

Navigation menu