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

TM 1628 hometheater board #21

Closed
harymk opened this issue Jun 14, 2022 · 7 comments
Closed

TM 1628 hometheater board #21

harymk opened this issue Jun 14, 2022 · 7 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@harymk
Copy link

harymk commented Jun 14, 2022

Home theatre front panel board not same wiring from the data sheet. How to change leg details.

@maxint-rd
Copy link
Owner

Hi, I don't know what this Home theater front panel board is. Are you trying to reuse a salvaged component featuring the TM1628 chip? Is it a 7-segment display? Are only the digits in different order or only the segments, or both? Please provide more info.

From what I read so far my first suggestion is to modify the font in the source code (TM16xxFonts.h) or to implement a mapping function such as done in TM1640Anode.

@maxint-rd maxint-rd added enhancement New feature or request question Further information is requested labels Jun 14, 2022
@harymk
Copy link
Author

harymk commented Jun 14, 2022

this is circuit
Schematic_1628_2022-06-14

@harymk
Copy link
Author

harymk commented Jun 15, 2022

PLEASE HELP

@maxint-rd
Copy link
Owner

Hello @harymk ,

First of all I need to restate the disclaimer at the bottom of the readme. It's an important message which reads: "All code on this GitHub account, including this library is provided to you on an as-is basis without guarantees and with all liability dismissed. It may be used at your own risk. Unfortunately I have no means to provide support."

As I appreciate people using my work, I try to help, but my means are very limited. I made the library in my spare time and cannot fulfill requests for support. I also don't have access to the hardware that you are using and don't know the context of your project.

However, you having made the schematic is a good first step. I looked at it and saw that the segments are garbled up compared to the regular order. To support non-standard layouts, you need to change the code.
The easiest way to deal with different segment order is to change the font file TM16xxFonts.h (first focus on only the numbers in TM16XX_NUMBER_FONT).

(The example TM16xx_setSegmentsDebug.ino may be handy to test the order of the segments. The example TM16xxDisplay_Print.ino is very simple and shows a counter, but remove printing "Count" as you have only 4 digits)

If you cannot program C++ yourself, please find a programmer to make required changes or feel free to use another library that you may prefer.

Good luck making the changes and getting your display to work!

@harymk
Copy link
Author

harymk commented Jun 16, 2022

I understood. I have other doubt. Can i chenge digit number.

Gird1 as second digit and gird2 as first digit. Is ther any option for that. My english not good. Help me if u can.

@maxint-rd
Copy link
Owner

There is no build-in support for printing in reverse order. The easiest way is perhaps to make your own routine to print numbers and use the setDisplayDigit function to print individual digits at the required position.

A programmer could use the TM1628 class as a base and make a derived TM1628harymk class that overwrites the setSegments() or the endChar() method, to both change the position of the digits as well as the segments. Using such class allows you to still use all thel features in the library without further changes.

The InvertedTM1638 class uses such a technique. That class is derived from the regular TM1638 class. It changes the sendChar() method to manipulate both reversed digits, as well as changed segment positions.
(It also changes button interpretation, but you may not need that).

@harymk
Copy link
Author

harymk commented Jun 16, 2022

THANKS maxint-rd, THANKS YOUR LIBRERY ITS HELP ME A LOT

@harymk harymk closed this as completed Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants