Skip to content

Ghosting when using setChars #102

@basgoossen

Description

@basgoossen

I have a problem with digit practically all digits ghosting into the most significant digit when using setChars. I had issues with ghosting before when using setNum but this disappeared with a reset. However setChars consitently has this issue:

void loop() {
    long ms = millis();
  
    if(ms - lastMs > 1000){
      if(error > 0){
        sevseg.setNumber(error);
      } else {
        DateTime now = rtc.now();
        snprintf(dtime, 5, "%2d%02d", now.hour(), now.minute());
        sevseg.setChars(dtime);
        digitalWrite(SEG_SP_A, !digitalRead(SEG_SP_A));
      }
      lastMs = ms;
    }
    sevseg.refreshDisplay();
  }

All other info is displayed correcly on the segments.

Metadata

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