BulldogLowell:
what are you actually trying to do there?
//these initialize the pins I'm using for the LED display
const int light[] = {3, 4, 5, 6, 7, 8, 9};
const int digit[] = {10, 11, 12, 13};
//this holds the value of each indiviual number to be displayed
int value[] = {0, 0, 0, 0};
//this is was the only way I was able to make sure only the numbers that have to be changed actually change
bool change[] = {true, false, false, false};
//this checks passed time, I could change this to a single integer but it works fine like this
int hold[] = {0, 0, 0, 0};
//this is a translation table that ensures the right parts of the 7 segment LED display light up
int _table[10][7] = {
{1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 0, 0, 0, 0},
{1, 1, 0, 1, 1, 0, 1},
{1, 1, 1, 1, 0, 0, 1},
{0, 1, 1, 0, 0, 1, 1},
{1, 0, 1, 1, 0, 1, 1},
{1, 0, 1, 1, 1, 1, 1},
{1, 1, 1, 0, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 0, 1, 1}
};
and the timestamp could just be a number but I wanted it to be easy to change the interval between each digit change.
But I fixed most problems with my messy code, seems to be working fine now appart from the fact that part a of my LEDs won't light up, if you have a way to make a more organized code, I would love to hear it.