blanking a digit on a TM1637 4 digits display

I'm using

 display.showNumberDec(127,false,3,1);

to display 127, but when I display (for example) 36, the "1" remains visible. How can I tell it to blank a specific digit?

I've used

uint8_t data[] = {0x0, 0x0, 0x0, 0x0}; 
display.setSegments(data);   // blank the display

to emty the entire display, but there's a visible delay, I only want to blank out 1 particular digit.

Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

Sounds like a bug in the library.

setSegments() allows you to only set a specific digit:

  //! @param segments An array of size @ref length containing the raw segment values
  //! @param length The number of digits to be modified
  //! @param pos The position from which to start the modification (0 - leftmost, 3 - rightmost)
  void setSegments(const uint8_t segments[], uint8_t length = 4, uint8_t pos = 0);

So if you wanted to blank the 2nd digit, it should look something like this:

uint8_t data[] = {0x0};
display.setSegments(data, 1, 1);   // blank the second digit

Perfect, many thanks :wink: