Comments (9)
Yes. TM1640anode supports up to 16 segments in common anode mode. Since last update the library supports text on more segments. I've tested 14-segment some time ago. 13 segment may work too, perhaps with minor changes to the font used or mapping of segments.
See this commit for some documentation embedded in the sources.
from tm16xx.
Hello thanks for quick reply. How can i set 13 segment on tm1668 module.
/*
Basic library example for TM1638. Kept small to show the simplest display functionality.
Library based on TM1638 library by Ricardo Batista, adapted by Maxint-RD MMOLE 2018.
Tested to work:
Arduino Nano using Arduino IDE 1.8.2, Nano (Old Bootloader)), 4092 bytes flash, 135 bytes RAM
For more information see https://github.com/maxint-rd/TM16xx
*/
#include <TM1668.h>
//TM1668 module(8, 9, 10); // DIO=8, CLK=9, STB=7
TM1668 module(D0, D1, D2, 4,true,7,TM1668_DISPMODE_4x13);
#include <TM16xxDisplay.h>
//TM1628 module(D2, D1, D0); // DIO=8, CLK=9, STB=7
TM16xxDisplay display(&module, 4); // TM16xx object, 8 digits
void setup() {
//display.println(F("HELLO !"));
}
int nCount=0;
void loop() {
delay(1000);
//display.print("Count:");
display.println("BASS");
}
from tm16xx.
Its only showin 7 segment
from tm16xx.
Thank you for supplying additional information. I don't have the module you are showing, so I'n not sure to what extend I can help you. But I'll give it a try. First thing to note is that at the moment I only used a 14-segment display on the TM1640. I haven't tried to use 13 segments on the TM1668 (yet) The library may require changes to support using a 13-segment x 4-digit display on the TM1668.
But first some questions:
- In the title of this issue you mention CS1694. I am not familiar with that chip. You also mention TM1668. Is the CS1694 a chip that is fully compatible with the TM1668? Why is CS1694 in the title?
- The datasheet of the CS1694 shows that it supports up to 11 segments, not 13. What chip is on your module?
- I could not find information when searching for Besso SB4010-D-1. It looks like you salvaged the module from a multimedia player of some kind, Do you have a link to more information? Do you have a schematic of that module?
from tm16xx.
in addition to my previous post, I suggest you to test the segments 8-13 on your module to see if they light up and to figure out their wiring. The TM16xx_setSegmentsDebug example may be a good base for such test, but you need to modify it to call the setSegments16() method and have the segment loop go up to uint16_t 0xFFFF instead of a byte up to 0xFF.
In the meanwhile I've been looking at the code of the library. If indeed your module features a TM1668 chip, the library requires a change to support printing 13-segment Ascii characters on the TM1668, The change needed is the addition of a function that is already implemented for TM1640Anode:
void TM1640Anode::sendAsciiChar(byte pos, char c, boolean fDot)
{ // Method to send an Ascii character to the display.
// This method is also called by TM16xxDisplay.print() to display characters.
// The base class uses the default 7-segment font to find the LED pattern.
// Derived classes for multi-segment displays or alternate layout displays can override this method.
uint16_t uSegments= pgm_read_word(TM16XX_FONT_15SEG+(c - 32));
setSegments16(uSegments | (fDot ? 0b10000000 : 0), pos);
}
By including that method, your display.print() example should already turn on the additional segments, but they may be garbled up due to different segment wiring. To resolve that TM1640Anode implements segment mapping. Since I don't have your module or common cathode 13-seg led-displays, I cannot test such feature. If you give me more information and answer the questions in my previous response, perhaps I can provide more help.
from tm16xx.
Ok i will chech, thanks
from tm16xx.
FYI: I have ordered some 2-digit 14-segment common cathode LED displays, Once I received them I intend to do 13-segment testing which both TM1668 and TM1628 which both support a 13-segment mode. Driving 13-segments instead of 14 probably means G1 and G2 will be combined and the decimal point will be omitted.
from tm16xx.
Hello Hari, just for your information: I have received the displays and I'm currently working on implementing 13-segment support on both TM1628 and TM1668. TM1628 works and tests fine. TM1668 should be the same. I intend to publish an updated release this week or the next.
For other news: I've ordered TM1624 and TM1623 chips that support 14 segments.
from tm16xx.
Thanks sir.
from tm16xx.
Related Issues (20)
- Redefine Pins HOT 1
- Redback 7-segment led and button module with TM1652 HOT 4
- Add pinMode() to sendData() and getButtons() HOT 1
- Example for TM1640 with common anode 8x8 bicolor led matrix? HOT 17
- TM1650 Arduino library for 2 x 7 led display HOT 7
- regarding interfacing of tm1640 HOT 12
- Can I act _as_ a TM1651? HOT 4
- Problem while using this library with ESP32 HOT 3
- Hello Any help on TM1621 HOT 2
- how we can use 4 segment with dot HOT 1
- Another TM1652 device HOT 2
- Halt when useing RP2040 with TM1652 HOT 2
- TM16xxDisplay.cpp bug HOT 1
- Request: Flip 8x8 matrix HOT 18
- Monitoring TM1628 HOT 6
- How do you control the TM1638 discrete LEDS? HOT 2
- Button numbering question for TM1638 LED&KEY module (8 LEDS, 8 digits, 8 Buttons)? HOT 2
- Support for TM1618? HOT 14
- Problems with TM1618 HOT 15
- Request: Brightness scaled [0-255] instead of [0-7] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tm16xx.