You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/LCDBigNumbers.hpp
+27-17
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,10 @@
34
34
#defineONE_COLUMN_HYPHEN_CHARACTER'_'// This input character is printed as a one column hyphen. Normal hyphen / minus are printed as a hyphen with the width of the number - 1.
35
35
#defineONE_COLUMN_HYPHEN_STRING"_"// This input string is printed as a one column hyphen. Normal hyphen / minus are printed as a hyphen with the width of the number - 1.
36
36
37
-
#defineVERSION_LCD_BIG_NUMBERS"1.2.2"
37
+
#defineVERSION_LCD_BIG_NUMBERS"1.2.3"
38
38
#defineVERSION_LCD_BIG_NUMBERS_MAJOR1
39
39
#defineVERSION_LCD_BIG_NUMBERS_MINOR2
40
-
#defineVERSION_LCD_BIG_NUMBERS_PATCH2
40
+
#defineVERSION_LCD_BIG_NUMBERS_PATCH3
41
41
// The change log is at the README.md
42
42
43
43
/*
@@ -293,15 +293,15 @@ class LCDBigNumbers: public Print {
293
293
#else
294
294
LiquidCrystal_I2C *LCD;
295
295
#endif
296
-
uint8_t NumberWidth;
296
+
uint8_t NumberWidth;// Width of the rendered number not including the optional blank gap
297
297
uint8_t NumberHeight;
298
298
uint8_t FontVariant;
299
299
constuint8_t (*bigNumbersCustomPatterns)[8];
300
300
uint8_t NumberOfCustomPatterns;
301
301
constuint8_t *bigNumbersFont;
302
302
bool forceGapBetweenNumbers; // The default depends on the font used
303
303
uint8_t upperLeftColumnIndex; // Start of the next character
304
-
uint8_tmaximumColumnIndex; //Maximum of columns to be written. Used to not clear the gap after a number which ends at the last column. (44 bytes program space)
304
+
uint8_tmaximumColumns; //Auto detected maximum of columns which can be written (e.g. 16 or 20). To avoid clearing the gap after a number which ends at the last column. (44 bytes program space)
305
305
uint8_t upperLeftRowIndex; // Start of the next character
306
306
307
307
/*
@@ -321,7 +321,7 @@ class LCDBigNumbers: public Print {
321
321
* This also sets cursor to 0.0 by call to _createChar()
322
322
*/
323
323
voidbegin() {
324
-
maximumColumnIndex = 0;
324
+
maximumColumns = 0;
325
325
// create maximum 8 custom characters
326
326
for (uint_fast8_t i = 0; i < NumberOfCustomPatterns; i++) {
327
327
_createChar(i, bigNumbersCustomPatterns[i]);
@@ -432,7 +432,7 @@ class LCDBigNumbers: public Print {
432
432
* Draws a big digit of size aNumberWidth x aNumberHeight at cursor position
433
433
* Special characters always have the width of 1!
434
434
* After each number one column gap is inserted. The gap is cleared, if not at the (last + 1) column!
435
-
* @param aNumber - byte 0x00 to 0x09 or ASCII number or one of ' ', '|', '-', '_', '.' and ':' special characters to display
435
+
* @param aNumber - byte 0x00 to 0x09 or ASCII number or one of these special characters: ' ', '|', '-', '_', '.', ':'
436
436
* @return The number of columns written (1 to 4 currently)
0 commit comments