Closed DRSDavidSoft closed 6 years ago
That's a good suggestion - blank is more appropriate. I think that when that line was written, the library actually didn't support characters and didn't even have a blank function. Changed in the most recent commit.
Description of the issue
When the SevSeg object is instantiated, the Seven Segment displays a
0.
for a split second before the arduino program sets the desired characters within the loop. This happens because of the line defined in:https://github.com/DeanIsMe/SevSeg/blob/327fe023a47870cd7379b23ff14240fb0d466a7b/SevSeg.cpp#L211
Preview
In order to test this out, I wrote the following:
Request
Now, I can use call
sevseg.setChars("boot");
immediately aftersevseg.begin()
, but this doesn't fix the split-second issue. I'd like to prevent displaying the0.
altogether.Possible solutions
setNewNum(0, 0);
in thebegin()
at all; it should useblank()
instead.SevSeg::begin()
adds a new argument, e.g.:startingChars
, orblankOnInit
to specify whether it should display zeros at first, or blank the screen.