You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/TM1637.md
+20-26Lines changed: 20 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,37 +12,39 @@ To use this feature (i.e., if you're not using _tasmota*-display.bin_ precompile
12
12
#define USE_DISPLAY_TM1637
13
13
#endif
14
14
```
15
-
----
16
-
<br><br>
15
+
----
16
+
17
+
18
+
TM1637
17
19
18
-
TM1637<br>
19
20

20
21
21
22
The **TM1637** display module is a small (~ 10mm high digits) 7-segment, LED-based display unit with 4 or 6 digits. It uses a two-wire I2C-like (but not exactly) protocol for communication with MCUs.
22
23
23
-
This module is a great way to add a simple numeric display to any MCU project.
24
-
<br><br>
24
+
This module is a great way to add a simple numeric display to any MCU project.
25
+
25
26
## Features
26
-
* The _Tasmota_ support for this module enables displaying numbers (both integers and floats) and basic text. For example, sending the text "22.5^" displays 
27
+
* The _Tasmota_ support for this module enables displaying numbers (both integers and floats) and basic text. For example, sending the text `22.5^` displays 
27
28
28
29
* Raw segments can also be displayed.
29
30
30
-
* It is also possible to set brightness (8 levels), clear the display, scroll text, display a rudimentary bar graph, and a Clock (12 hr and 24 hr).
31
+
* It is also possible to set brightness (8 levels), clear the display, scroll text, display a rudimentary bar graph, and a Clock (12 hr and 24 hr).
32
+
31
33
32
-
<br><br>
33
-
## Configuration
34
-
<br>
34
+
## Configuration
35
35
36
36
### Wiring
37
+
37
38
The TM1637 module needs two GPIO pins and a 3.3V-5V power supply.
In _Tasmota_'s **_Configuration -> Configure Module_** page assign:
@@ -58,21 +60,18 @@ For example, if x=3 and y=4, then the configuration would look like the followin
58
60
59
61
!!! failure "Note that you need to select the **SSPI** pins and NOT *SPI*"
60
62
61
-
<br><br>
62
-
63
63
Once the GPIO configuration is saved and the ESP8266/ESP32 module restarts, set the Display Model to 15 using the command "DisplayModel 15"
64
64
65
-
After this, depending upon your display variant, set your Display Type to 0, 1 or 2 using the command<br>
66
-
67
-
`DisplayType 0` for the 4-digit TM1637 -or-<br>
65
+
After this, depending upon your display variant, set your Display Type to 0, 1 or 2 using the command
66
+
67
+
`DisplayType 0` for the 4-digit TM1637 -or-
68
68
`DisplayType 1` for the 6-digit TM1637
69
69
70
70
71
71
After the ESP8266/ESP32 module restarts again, the following _Display-_ commands can be used from the _Tasmota_ web-console or _MQTT_, and from Tasmota _Rules_.:
@@ -93,24 +92,19 @@ DisplayClock | Displays a clock. <br> `DisplayClock 1` displays a clock in 12-ho
93
92
||
94
93
95
94
96
-
<br><br>
97
-
98
95
## Usage in Rules
99
96
All the above commands ca be used in Tasmota [Rules](https://tasmota.github.io/docs/Rules/), as usual.
100
97
101
-
For example, a simple digital thermometer can be implemented by connecting a **DHT22** Temperature-Humidity Sensor and a **TM1637** to a **Wemos D1 Mini**, and writing a Rule like the following:<br>
98
+
For example, a simple digital thermometer can be implemented by connecting a **DHT22** Temperature-Humidity Sensor and a **TM1637** to a **Wemos D1 Mini**, and writing a Rule like the following:
0 commit comments