# Add 4 digit TM1637 (time)

**URL:** <https://wled.discourse.group/t/add-4-digit-tm1637-time/12083>\
**Category:** Questions\
**Created:** [June 20, 2024, 1:07pm UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083 "2024-06-20T13:07:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grx3D](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@Grx3D](https://wled.discourse.group/u/Grx3D)\
**Post date:** [June 20, 2024, 1:07pm UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083/1 "2024-06-20T13:07:37Z")

</div>

Hello, I have been using WLED for quite some time now for small personal projects, like lamps, ambilight, etc. I have some TM1637 displays in stock, and I would like to connect them to my ESP32 and retrieve the time display. I imagine this is possible.

I don’t really know where to start.  
I can make a digital clock using a simple library, but I don’t know how to combine WLED with the TM1637. If someone could guide me a bit, I am a beginner, but I know how to use Platformio.

Perhaps I’m starting with something a bit too complex for my skills 😕  
Maybe this mod already exists? But I can’t find anything.

---

<div class="post-metadata">

**Author:** ![Magig\_Wled](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Magig\_Wled](https://wled.discourse.group/u/Magig_Wled)\
**Post date:** [June 21, 2024, 11:18am UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083/2 "2024-06-21T11:18:52Z")

</div>

Hi @Grx3D Welcome  
this are 7sehment Displays Wled AS Standard is for Controlling LED Pixels

you can make if You like a Usermod that outputs a SPI or I2C signal that this controllers use

BUT if you like a 4Digit use one of the FLEX WS2812b 8x32 pabnels this are very BIG to show  
and you can do mutch more on them Scrolling txt //effects

---

<div class="post-metadata">

**Author:** ![Grx3D](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@Grx3D](https://wled.discourse.group/u/Grx3D)\
**Post date:** [June 22, 2024, 12:50pm UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083/3 "2024-06-22T12:50:57Z")

</div>

Hello and thank you for the response.  
Indeed, the LED pads are much too large for my project.  
I am making a lamp with a laser-engraved mirror with a diameter of 20cm and I would like to place a small screen on it, something discreet to display the time. That’s why the TM1637 screens are perfect.  
I am trying to create a user mod, but my coding skills are really very limited.

---

<div class="post-metadata">

**Author:** ![Magig\_Wled](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Magig\_Wled](https://wled.discourse.group/u/Magig_Wled)\
**Post date:** [June 22, 2024, 12:59pm UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083/4 "2024-06-22T12:59:47Z")

</div>

@Grx3D  
Wha ad all woudt you like to use a WLED use a simple arduino nano the TM1637 is in the Libary  
so only the Example to upload to the Arduino and you are done

PLEASE discribe your projekt goals to be met

---

<div class="post-metadata">

**Author:** ![Grx3D](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@Grx3D](https://wled.discourse.group/u/Grx3D)\
**Post date:** [June 22, 2024, 2:33pm UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083/5 "2024-06-22T14:33:21Z")

</div>

I would like to use a single ESP32 (I have some in stock) for its connectivity, retrieve the time from WLED (NTP), and display it on my TM1637.

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/f/fba29b10a3ecad98d1fbe8198df956778bb55eb4.jpeg)  
(Add a tm1637 in the middle, for exemple)

---

<div class="post-metadata">

**Author:** ![kilrah](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/kilrah/32/5927_2.png) [@kilrah](https://wled.discourse.group/u/kilrah)\
**Post date:** [June 22, 2024, 3:24pm UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083/6 "2024-06-22T15:24:19Z")

</div>

Why get the time from WLED instead of just grabbing it via ntp directly?

---

<div class="post-metadata">

**Author:** ![Grx3D](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@Grx3D](https://wled.discourse.group/u/Grx3D)\
**Post date:** [June 25, 2024, 11:18pm UTC](https://wled.discourse.group/t/add-4-digit-tm1637-time/12083/7 "2024-06-25T23:18:34Z")

</div>

Here’s the English translation:

* * *

Alright, I did it! With the help of friends and ChatGPT

I created a Usermod that retrieves the time from the NTP server of WLED and displays it on my TM1637 screen. I started by simply displaying a time at the startup of the ESP (so 00:00 at each startup of my ESP, not practical 🙂 ). Then I asked the AI to modify the code to grab the time from WLED based on part of the code from the usermod ST7789\_display.  
I’m not an expert, and the code could probably use some cleaning up.

Updated with brightness settings in usermods :

[usermod\_tm1637display.h](https://wled.discourse.group/uploads/short-url/fGi9pLbYzn6QAQhXBLuOqWpHzEy.h) (2.6 KB)

![Capture d’écran 2024-06-27 162906](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/b/b149287806c1d47507fcd4dd516b370835539368.png)

In short, I’m pretty happy.
