File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2727#define BLANK_IDX 36 // Must match with 'digitCodeMap'
2828#define DASH_IDX 37
2929#define PERIOD_IDX 38
30+ #define ASTERISK_IDX 39
3031
3132static const long powersOf10[] = {
3233 1 , // 10^0
@@ -95,6 +96,7 @@ static const byte digitCodeMap[] = {
9596 B00000000, // 32 ' ' BLANK
9697 B01000000, // 45 '-' DASH
9798 B10000000, // 46 '.' PERIOD
99+ B01100011, // 42 '*' DEGREE ..
98100};
99101
100102// Constant pointers to constant data
@@ -480,6 +482,9 @@ void SevSeg::setChars(char str[]) {
480482 else if (ch == ' .' ) {
481483 digitCodes[digitNum] = digitCodeMap[PERIOD_IDX];
482484 }
485+ else if (ch == ' *' ) {
486+ digitCodes[digitNum] = digitCodeMap[ASTERISK_IDX];
487+ }
483488 else {
484489 // Every unknown character is shown as a dash
485490 digitCodes[digitNum] = digitCodeMap[DASH_IDX];
You can’t perform that action at this time.
0 commit comments