#include <LedControl.h>
LedControl lc = LedControl(2, 4, 3, 1); // DIN, CLK, CS, モジュール数
void setup() {
for (int i = 0; i < lc.getDeviceCount(); i++) {
lc.shutdown(i, false); // 表示する(お約束)
lc.setIntensity(i, 8); // 明るさ(0..15)
lc.clearDisplay(i); // いったん全消去
}
}
void loop() {
lc.setRow(0, 0, millis() / (1000 * 0.25));
}