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

Add support for TM1637 key/button input #12

Open
timwaizenegger opened this issue Apr 9, 2017 · 2 comments
Open

Add support for TM1637 key/button input #12

timwaizenegger opened this issue Apr 9, 2017 · 2 comments
Assignees

Comments

@timwaizenegger
Copy link

I've noticed that the TM1637 has two pins that you can use together with the LCD-grid pins as a key/button matrix. apparently you can connect up 16 buttons this way and read their state via the serial I/O.

It looks like very few off-the-shelve display modules for arduino/raspberry use this feature but it could be very useful in custom applications. When you're using a display it's most likely for a UI, so usually you'll want some buttons as well...

I found no arduino TM1637 lib that implements this feature. Your library seems very complete and ambitious; maybe you're interested in adding this 👍

@timwaizenegger
Copy link
Author

timwaizenegger commented Apr 9, 2017

I did find a library that seems to implement the feature; might be useful as a reference.

https://forum.arduino.cc/index.php?PHPSESSID=lpd0td3f2499n2i2jo1uq1atg6&topic=360318.msg2612868#msg2612868

@bremme bremme self-assigned this Apr 10, 2017
@bremme
Copy link
Owner

bremme commented Apr 10, 2017

Hi Tim, thanks for your feedback! There is already a low level method which should be able to read the key matrix (uint8_t SevenSegmentTM1637::comReadByte(void)). But I never really tested this since I didn't had a TM1637 display with connected buttons. I think I do have one now, if I can find it:). I'm going to have a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants