Open
Description
For versions >= 1.3.0
Please check const_ledclock.h
for instructions.
For versions < 1.3.0:
If you want to change how many LEDs make up a segment:
- change the total number of LEDs in platformio_override.ini:
- in um_ledclock.h change in the member initializer list the arguments for
dHoursT
,dHoursO
,dMinutesT
anddMinutesO
from 2 to the desired number of LEDs per segment - currently it is not possible to change the number of LEDs in the separator
Either if you've changed the number of LEDs or just want to change the order of LEDs, you need to re-map the LEDs here:
- For example the statement
dHoursT.mapSeg 598B ment(_7SEG_SEG_A, 6, 7);
maps the 'A' segment of the 'tens' digit to LEDs indexed with6
and7
. mapSegment(...)
can be called with variable number of arguments depending on how many LEDs you have per segment.mapSegment(...)
expects LED ordering within a segment:- left to right for horizontal segments (e.g. A)
- top to bottom for vertical segments (e.g. B)
EDIT: about the mapping of the separator, read this.