Stopwatch using a 32 x 8 LED Matrix

The display looked like the first photo with the SmallDigits.h file that I downloaded from Github, the second photo shows the display with the edited SmallDigits.h file.



This was the original section of the file:

Original section of SmallDigits.h file.

  2, 4, 32,   // 32    - space
  0,  // 33    
  0,  // 34    
  0,  // 35    
  0,  // 36    
  0,  // 37    
  0,  // 38    
  0,  // 39    
  0,  // 40    
  0,  // 41    
  0,  // 42    
  0,  // 43    
  0,  // 44    
  0,  // 45    
  0,  // 46    
  0,  // 47    
  6, 0, 60, 82, 74, 60, 0,  // 48   - 0
  5, 0, 68, 126, 64, 0,   // 49   - 1
  6, 0, 100, 82, 82, 76, 0,   // 50   - 2
  6, 0, 66, 74, 74, 52, 0,  // 51   - 3
  6, 0, 30, 16, 124, 16, 0,   // 52   - 4
  6, 0, 78, 74, 74, 50, 0,  // 53   - 5  
  6, 0, 60, 74, 74, 50, 0,  // 54   - 6
  6, 0, 2, 114, 10, 6, 0,   // 55   - 7
  6, 0, 52, 74, 74, 52, 0,  // 56   - 8
  6, 0, 76, 82, 82, 60, 0,  // 57   - 9
  2, 32, 4,   // 58   - :
  0,  // 59  

This is the edited version of the same section

  Edited section of the SmallDigits.h file.

  0,  // 31    
  1, 0,   // 32    - space
  0,  // 33    
  0,  // 34    
  0,  // 35    
  0,  // 36    
  0,  // 37    
  0,  // 38    
  0,  // 39    
  0,  // 40    
  0,  // 41    
  0,  // 42    
  0,  // 43    
  0,  // 44    
  0,  // 45    
  0,  // 46    
  0,  // 47    
  4, 60, 82, 74, 60,   // 48   - 0
  3, 68, 126, 64,    // 49   - 1
  4, 100, 82, 82, 76,    // 50   - 2
  4, 66, 74, 74, 52,   // 51   - 3
  4, 30, 16, 124, 16,    // 52   - 4
  4, 78, 74, 74, 50,   // 53   - 5  
  4, 60, 74, 74, 50,   // 54   - 6
  4, 2, 114, 10, 6,    // 55   - 7
  4, 52, 74, 74, 52,   // 56   - 8
  4, 76, 82, 82, 60,   // 57   - 9
  1, 36,    // 58   - :
  0,  // 59  

Basically it was just a matter of changing the width of the digits (the first number) and removing the blank columns (the zeros). I also straightened up the colon on the second from bottom line.

Best regards

Steve

1 Like