Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Function to flip 7-segment display #20

Open
ngmacha opened this issue May 7, 2022 · 3 comments
Open

Request: Function to flip 7-segment display #20

ngmacha opened this issue May 7, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ngmacha
Copy link

ngmacha commented May 7, 2022

Hello, is it possible to add a fuction that flips the TM1637-based 7-segment 4-digit display, so the numbers (time) are showing as rotated 180 degrees? I'm building a timer that can be used/mounted in 2 positions, and would like to flip the display based on the value of the accelerometer's Z orientation. Thank you.

@maxint-rd maxint-rd self-assigned this May 11, 2022
@maxint-rd maxint-rd added the enhancement New feature or request label May 11, 2022
@maxint-rd
Copy link
Owner

maxint-rd commented May 11, 2022

Interesting concept - I'm sure this can be implemented, perhaps by adding an alternative font or by doing some bit-magic. I should have a GY-521 MPU-6050 accelerometer somewhere in my box of modules, but I haven't played with it yet.

A few years back I made an ESP8266 (d!-mini) driven 3-wheel robot, for which such a feature could be handy. It features a TM1637 display and some other things (buzzer, joystick, RGB-led, I/O expander, I2C ports, etc). I published a video about making it on my YouTube channel.

I'm short on time so I don't know when I get to this, but I've marked this as an enhancement and I won't close it before I looked into it. In the mean while feel free to dive into the code of the library to see if there's an easy way to handle this...

@ngmacha
Copy link
Author

ngmacha commented May 11, 2022

Hi @maxint-rd ! I've posted same request into several other TM11637 library repos, and got a great response from @jasoncox at jasonacox/TM1637TinyDisplay#2 As matter of fact, he just implemented a flip function yesterday and I've tested it to work perfectly for my case. You may check with him to implement the same for your library. Thank you for replying, and kind regards - Mac Ha

@maxint-rd
Copy link
Owner

Cool, thank you for your swift reply and for informing me about Jason's work. I didn't know his library and it may give me some inspiration to further improve mine. Good luck with your project and have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants