EveryCircuit
Powering up...
Circuit
Public
Private
Unlisted
Save

LED matrix no logic

@cymatic
9 years ago
https://everycircuit.com/circuit/5231547135557632
Simple LED matrix. Arduino does the rest. Use digitalWrite() for x and y location. Sample code gives different effect. Void setup() { // set pins 2 - 9 as output For(int x = 2; x < 10; x++) { pinMode(x, OUTPUT); } } void main() { // pins 2 - 5 are x, pins 6 - 9 y for(int x = 2; x < 6; x++) { for(int y = 2; y < 10; y++) { digitalWrite(x, HIGH); digitalWrite(y, HIGH); delay(125); digitalWrite(x, LOW); digitalWrite(y, LOW); } } }
Comments
Post