File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,13 @@ void SevSeg::setSegments(const uint8_t segs[]) {
433433 }
434434}
435435
436+ // setSegment
437+ /* *****************************************************************************/
438+ // Like setSegments above, only manipulates one segment
439+ void SevSeg::setSegment (const byte segNum, const byte segs) {
440+ digitCodes[segNum] = segs;
441+ }
442+
436443// getSegments
437444/* *****************************************************************************/
438445// Gets the 'digitCodes' of currently displayed segments.
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class SevSeg
4848
4949 void setSegments (const uint8_t segs[]);
5050 void getSegments (uint8_t segs[]);
51+ void setSegment (const byte segNum, const byte segs);
5152 void setChars (const char str[]);
5253 void blank (void );
5354
You can’t perform that action at this time.
0 commit comments