How can I rotate data on a TM1637 display upside-down

Hi,

I've been working with a 4 digit TM1637 and a Nano using one of the most common libraries for it (GitHub - avishorp/TM1637: Arduino library for TM1637 (LED Driver)) with cool results. But, In this particular project I need to change the display orientation while it's running, i.e rotate it 180° like this:

displayqstn

So, I tought It was some basic function that perhaps was already included but I found that's not the case. Do you have any sugestion on how to achieve this?

I was wondering if you can modify the avishorp library to include rotate as an additional argument perhaps at the definition of something (idk how it works).
Or adding some code or something physical in the DIO pin

Thanks for reading anyways

Maybe ask the library author? Or, investigate how other LCD libraries do text rotation and start hacking.

PS: most libraries 'rotate' based on the "orientation" method. I did not see this method, but I did not exhaustively dig into the source.

you have to do two things:
a) modify the assignment of the LED to the correct segment
b) reverse the order of digits

easy: just turn the module by 180 degrees.

You can use TM1637TinyDisplay library by Jason A. Cox. You find it in the library manager.

It includes the flipDisplay() function that rotates the display 180 degrees.

Regards