This code appears to be wrong. A Fritzing schematic of the hardware would be necessary to make a stab at correcting it I expect as various parts of the code will depend on what pins are in use for what such as what pins are doing the digit driving (which appears to be where some errors are) although the segment drive ports would also be necessary.
↧