#include "portselection.h"
volatile long t_delay;
char numbers[10] = {0x3F,0x06,0x5B,0x4F,0x66,0x6d,0x7d,0x07,0x7f,0x6F};
char ones, tens, hundreds, thousands;
void setup() {
init_port();
}
void loop() {
for(thousands = 0;thousands < 10;thousands++){
for(hundreds = 0;hundreds < 10;hundreds++){
for(tens = 0;tens < 10;tens++){
for(ones = 0;ones<10;ones++){
for(t_delay = 0;t_delay < 100000;t_delay++){
output_k(0b11111110);
output_f(numbers[ones]);
output_k(0b11111101);
output_f(numbers[tens]);
output_k(0b11111011);
output_f(numbers[hundreds]);
output_k(0b11110111);
output_f(numbers[thousands]);
}
}
}
}
}
}