Arduino Code Sample
Arduino Code Sample
Arduino Code Sample
#define ROW_2 3
#define ROW_3 4
#define ROW_4 5
#define ROW_5 6
#define ROW_6 7
#define ROW_7 8
#define ROW_8 9
#define COL_1 10
#define COL_2 11
#define COL_3 12
#define COL_4 13
#define COL_5 A0
#define COL_6 A1
#define COL_7 A2
#define COL_8 A3
float timeCount = 0;
void setup()
{
// Open serial port
Serial.begin(9600);
void loop() {
// This could be rewritten to not use a delay, which would make it appear
brighter
delay(5);
timeCount += 1;
if(timeCount < 20) {
drawScreen(V);
} else if (timeCount < 40) {
// do nothing
} else if (timeCount < 60) {
drawScreen(O);
} else {
// end
timeCount = 0;
}
}
void drawScreen(byte buffer2[]){