Skip to content

colon display when not showing leading zeros and the value is 0 #65

Closed
@jan-gerard

Description

I use a 4-digid display with a single colon in the center. The colon is not displayed when I have the leading zeros parameter set to false, and the value is zero.

red.showNumberDecEx(hour(), 0b11111111*(second()%2), false, 2, 0);
red.showNumberDec(minute(), true, 2, 2);

It works correctly for any other value than zero, but if hour() in the above example is 0, the colon does not show. This seems to me like a small bug.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions