Skip to content

Instantly share code, notes, and snippets.

@y-yu
Created February 22, 2012 01:49
Show Gist options
  • Save y-yu/1880562 to your computer and use it in GitHub Desktop.
Save y-yu/1880562 to your computer and use it in GitHub Desktop.
まとりっくす
#include <Matrix.h>
#include <Sprite.h>
Matrix mtx = Matrix(10, 12, 11); // DIN, CLK, LOAD の各ピン番号
void setup() {}
void loop() {
mtx.clear(); // LED マトリックスを全て消灯
for (int j = 0; j < 8; j++) {
for (int i = 0; i < 8; i++) {
mtx.write(i, j, HIGH); // (i,j) の位置の LED を点灯
delay(100);
mtx.write(i, j, LOW); // (i,j) の位置の LED を消灯
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment