Skip to content

Instantly share code, notes, and snippets.

@y-yu
Created February 22, 2012 02:07
Show Gist options
  • Save y-yu/1880647 to your computer and use it in GitHub Desktop.
Save y-yu/1880647 to your computer and use it in GitHub Desktop.
まとりっくす2
#include <Sprite.h>
#include <Matrix.h>
Matrix mtx = Matrix(10, 12, 11);
Sprite tsuku = Sprite(
B01001000,
B01101110,
B10110100,
B00000000,
B11101100,
B01001100,
B11110110
);
Sprite ba = Sprite(
B10001000,
B00111110,
B10101010,
B00111100,
B10110100,
B10101000,
B11010110
);
void setup() { }
int x = 0;
void loop() {
mtx.write(0 - x, 0, tsuku);
mtx.write(8 - 0, 0, ba);
mtx.write(16 - x, 0, tsuku);
delay(100);
mtx.clear();
if (x == 16) {
x = 0;
}
x++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment