#include "Eight_X_Eight_LED.h"
volatile long delayPtr;
void setup() {
// put your setup code here, to run once:
init();
char display[]= {
0,0,0,0,0,0,0,0,
0b00000000,
0b00100110,
0b01001001,
0b01001001,
0b01001001,
0b01000101,
0b00111110,
0b00000001,
0,0,0,0,0,0,0,0 };
while(1)
{
for(int i=0; i<16; i++)
{
for(volatile long time=0; time < 15000; time++)
{
setChar(display, i);
}
}
}
}
void setChar(char data[], char index)
{
for(char row=0; row<8; row++)
{
//delayms(delayValue);
//setColumn(128>>row);
//setRow(~(data[index + row]));
setRow(~(1<<row));
setColumn(data[index + row]);
setColumn(0);
//setRow(0xFF);
}
}
void SetLED(char rowData, char columnData)
{
setRow(rowData);
setColumn(columnData);
}
char GetDecimalToBitValue(int data)
{
return (1<<data);
}
void loop() {
// put your main code here, to run repeatedly:
}