char values1[] = {0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef};
char values2[] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
char values3[] = {0x6d,0x7d,0x07,0x7f,0x6f,0x3f,0x06,0x5b,0x4f,0x66};
void setup() {
// put your setup code here, to run once:
volatile char *portf_dir = (char *)0x30;
*portf_dir = 0xFF;
volatile char *portk_dir = (char *)0x107;
*portk_dir = 0xFF;
}
void loop() {
// put your main code here, to run repeatedly:
volatile long i;
volatile char *portf_data = (char *)0x31;
volatile char *portk_data = (char *)0x108;
int data ;
for(int j = 0;j < 100;j++)
{
data = j / 10;
*portk_data = 0x0d;
*portf_data = values2[data];
for(i = 0;i < 200000;i++);
data = j % 10;
*portk_data = 0x0e;
*portf_data = values2[data];
for(i = 0;i < 200000;i++);
}
}