In the display TM1637 while making a segment of three lines for 3 letters say ABC
The output actually displays it from the very first digit
but
I want to make the first digit as a blank one and start ABC from the second digit
What to do there ?
In the display TM1637 while making a segment of three lines for 3 letters say ABC
The output actually displays it from the very first digit
but
I want to make the first digit as a blank one and start ABC from the second digit
What to do there ?
Post your code.
Check the library docs.
Could there be a function to start printing at position 2 on the display?
Yeah I checked but there is a word which is used by internet again and again for test program of device and the word is
dOnE
It starts from first digit ans there exist no other digit to display
Surfing is on progress
See post #2
#include <Arduino.h>
#include <TM1637Display.h>
// Module connection pins (Digital Pins)
#define CLK 3
#define DIO 2
TM1637Display display(CLK, DIO);
// The amount of time (in milliseconds) between tests
#define TEST_DELAY 2000
/*
const uint8_t SEG_DONE[] = {
SEG_B | SEG_C | SEG_D | SEG_E | SEG_G, // d
SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F, // O
SEG_C | SEG_E | SEG_G, // n
SEG_A | SEG_D | SEG_E | SEG_F | SEG_G // E
};
*/
//*
const uint8_t SEG_444[] =
{
SEG_B | SEG_C | SEG_F | SEG_G,
SEG_B | SEG_C | SEG_F | SEG_G,
SEG_B | SEG_C | SEG_F | SEG_G,
};
//*/
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
display.setBrightness(4);
//display.setSegments(SEG_DONE);
display.setSegments(SEG_444);
}
That makes a 'E'.
How might you make a ' ' space character and add it to the list?
a7
might do the trick:
```
const uint8_t SEG_444[] =
{
0, // no segments on this digit
SEG_B | SEG_C | SEG_F | SEG_G,
SEG_B | SEG_C | SEG_F | SEG_G,
SEG_B | SEG_C | SEG_F | SEG_G,
};
```
if you just need numbers, see the example TM1637test - there are examples how to print numbers...
Its 4
Wowwwwwwwwww
Worked !!!!!!!!
![]()
Thanks a tonne Sir !!!!!!!!!
I got the point !
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.