mcauser / micropython-tm1638

MicroPython driver for TM1638 dual quad 7-segment LED modules with switches
MIT License
28 stars 13 forks source link

TM1638 QYF #2

Open VojtechKlos opened 2 years ago

VojtechKlos commented 2 years ago

Hello,

i know this library has not been updated for a long time but would you consider maybe adding support for the other wildly publicly available board with TM1638 - the QYF version - wihich is without the LEDs and with 4x4 button matrix? There are libraries for this board for Embed C Arduinos for example https://github.com/rjbatista/tm1638-library

I tried to use your library to display digits on the display but the output is always gibberish - just random lines everywhere.

If you do not have time to do it could you at at least point me in the right direction in regards what to look for in your code to change? I am not a complete newbie in regards to programming but still could use some help ;-)

Thank for your response

mcauser commented 2 years ago

I’m unfamiliar with the QYF module, but I could probably port the code from that linked repo.

Would you be able to provide a link to the QYF module, or attach a photo of it?

VojtechKlos commented 2 years ago

Sure here is the photo: QYF TM1638

and here is an AliExpress page for the module https://www.aliexpress.com/item/32828100871.html?spm=a2g0o.ppclist.product.2.4af3FPfMFPfMwL&pdp_npi=2%40dis%21CZK%21CZK%2047.78%21CZK%2045.05%21%21%21%21%21%40210323a416596970402485606eb766%2164994226908%21btf&_t=pvid:1807d250-2d99-4ebd-af5f-eba4d8250043&afTraceInfo=32828100871pcpcBridgePPCxxxxxx1659697040

Thanks for the quick response ;-)

EDIT: It is not visible in the picture but on the top part above the displays there is the marking "QYF-TM1638".

mcauser commented 2 years ago

Ah ha. I actually have one of these. Mine does not have the QYF branding though. I’ll put something together

mcauser commented 2 years ago

This is the one I bought: https://a.aliexpress.com/_msPcnuc

I also grabbed this “LED&KEY” one: https://a.aliexpress.com/_mtuXAti

VojtechKlos commented 2 years ago

I got them from a local supplier but i think they are the same board. Mine just have more markings on them, or at least the "QYF" one has.

Anyway let me know if/when you have some progress. I'm working on a project for my friend's birthday and wanted to try Pi Pico with MicroPython because I had issues with Arduino boards all the time when doing larger projects. And also C isn't my cup of tea...

Thanks again for looking into this.

mcauser commented 2 years ago

Hey @VojtechKlos I'm just moving house atm, and all of my electronics are in storage. I'll come back to this in around a month.

zen375dragon commented 1 year ago

@mcauser Have you been able to complete this yet? I also have the same request as VojtechKlos.

mcauser commented 1 year ago

Following the discussion in https://github.com/orgs/micropython/discussions/11768 I'll create a fork to support the QYF-TM1638 board. It's 7-segments are wired up differently and has a different button map, and some of the LED&KEY methods are not relevant (such as controlling the top 8 LEDs).

Stay tuned. Updates coming soon.

zen375dragon commented 1 year ago

@mcauser Have you created a fork to support the QYF-TM1638 yet?