#define Delay 900000
void setup() {
// put your setup code here, to run once:
volatile unsigned char *col=(unsigned char*)0x30;
volatile unsigned char *row=(unsigned char*)0x107;
*row=0xFF;
*col=0xFF;
}
void lightRow(unsigned char row_numb){
volatile unsigned char *row=(unsigned char*)0x108;
volatile unsigned char *col=(unsigned char*)0x31;
*row=~(1<<row_numb);
*col=0xFF;
}
void lightCol(unsigned char col_numb){
volatile unsigned char *col=(unsigned char*)0x31;
volatile unsigned char *row=(unsigned char*)0x108;
*row=~(0xFF);
*col=(1<<col_numb);
}
void lightLED(unsigned char col_numb,unsigned char row_numb){
volatile unsigned char *row=0x108,*col=0x31;
*row=0xFF;
*col=0x00;
*row=~(1<<row_numb);
*col=(1<<col_numb);
}
void loop() {
// put your main code here, to run repeatedly:
unsigned char row=0x00,col=0x00;
volatile long i;
//lightLED(col,row);
//lightLED(7,0);
//lightLED(7,7);
//lightLED(0,7);
//lightRow(7);
//lightCol(0);
//lightCol(7);
// for(col=0;col<=7;col++){
// lightLED(col,col);
// }
// for(col=7;col>=0;col--){
// lightLED(col,7-col);
// }
}