8000 How can I change the number of LEDs / order of LEDs? · Issue #5 · imeszaros/ledclock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How can I change the number of LEDs / order of LEDs? #5
Open
@imeszaros

Description

@imeszaros

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 and dMinutesO 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 with 6 and 7.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0