Skip to content

Instantly share code, notes, and snippets.

#include<Servo.h>
#include <SPI.h>
#include<MsTimer2.h>
#include<Time.h>
//7セグを扱う準備
int csPin = 10;
int cycles = 0;
//スピーカーを扱う準備
@jp0511
jp0511 / LED Cube
Last active August 29, 2015 14:08
プログラムは、http://blog.livedoor.jp/syfone/archives/31809095.html を参考にして作成してみました。
int loopCount = 0;//10ループするとカウントされる
int sceanNow = 1;//現在のシーン
const int sceanMax = 7;//最大シーン数
int led[] = {
5, 6, 7, 8, 9, 10, 11, 12, 13};
int layer[] = {
2, 3, 4};
int cycletime = 200;