#ifndef __ScreenCounter #define __ScreenCounter #include "shared.h" #include "digits.h" #define DigitPage 0 #define DisplayWidth 128 #define DisplayHeight 64 #define DigitSpacing 1 #define DigitWidth3 ((DigitWidth * 3) + (DigitSpacing * 2)) #define DigitOffset3 ((DisplayWidth - DigitWidth3) / 2) #define DigitFullWidth DigitWidth3 #define DigitFullOffset DigitOffset3 #define DigitWidth2 ((DigitWidth * 2) + DigitSpacing) #define DigitOffset2 ((DisplayWidth - DigitWidth2) / 2) #define SpacingLeft2 ((DigitFullWidth - DigitWidth2) / 2) #define SpacingRight2 (DigitFullWidth - DigitWidth2 - SpacingLeft2) #define DigitWidth1 DigitWidth #define DigitOffset1 ((DisplayWidth - DigitWidth1) / 2) #define SpacingLeft1 ((DigitFullWidth - DigitWidth1) / 2) #define SpacingRight1 (DigitFullWidth - DigitWidth1 - SpacingLeft1) void handleCounterScreen(); void drawCounter(uint16_t value); void drawDigit(uint8_t* column, uint8_t digit); void blankDigitColumn(uint8_t* column, uint8_t width); #endif