Skip to content

Commit

Permalink
avr: Conserve memory with smallest data types
Browse files Browse the repository at this point in the history
Signed-off-by: Ricky Cheung <[email protected]>
  • Loading branch information
Ricky Cheung committed Jan 11, 2025
1 parent db49ea6 commit f8361b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Arduino_Code/Arduino_Code.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ for default settings use -O0. -O may be a good tradeoff between both */
/* For 8-bit microcontrollers we should use 16 bit variables since the
difficulty is low, for all the other cases should be 32 bits. */
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR)
typedef uint32_t uintDiff;
typedef uint16_t uintDiff;
#else
typedef uint32_t uintDiff;
#endif
Expand All @@ -48,7 +48,7 @@ typedef uint32_t uintDiff;

bool digitDrawn = false;
bool matrixEnabled = true;
int minedDigitCount = 0;
byte minedDigitCount = 0;

Adafruit_Microbit_Matrix microbit;
#endif
Expand Down

0 comments on commit f8361b8

Please sign in to comment.