Skip to content

Commit b970ee2

Browse files
Removed unwanted tags
1 parent dfd7b6b commit b970ee2

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

docs/TM1637.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,39 @@ To use this feature (i.e., if you're not using _tasmota*-display.bin_ precompile
1212
#define USE_DISPLAY_TM1637
1313
#endif
1414
```
15-
----
16-
<br><br>
15+
----
16+
17+
18+
TM1637
1719

18-
TM1637<br>
1920
![TM1637](_media/peripherals/TM1637-front.png)
2021

2122
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.
2223

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+
2526
## 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 ![22.5d](_media/peripherals/TM1637-22.5d.jpg)
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 ![22.5d](_media/peripherals/TM1637-22.5d.jpg)
2728

2829
* Raw segments can also be displayed.
2930

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+
3133

32-
<br><br>
33-
## Configuration
34-
<br>
34+
## Configuration
3535

3636
### Wiring
37+
3738
The TM1637 module needs two GPIO pins and a 3.3V-5V power supply.
3839

3940
| TM1637 | ESP8266 based module |
4041
|---|---|
4142
|CLK | GPIOx |
4243
|DIO | GPIOy
4344
|VCC | 3.3V (e.g., _ESP-01_) or 5V (e.g., _Wemos D1 Mini_)
44-
|GND | GND
45-
<br>
45+
|GND | GND
46+
| |
47+
4648

4749
### Tasmota Settings
4850
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
5860

5961
!!! failure "Note that you need to select the **SSPI** pins and NOT *SPI*"
6062

61-
<br><br>
62-
6363
Once the GPIO configuration is saved and the ESP8266/ESP32 module restarts, set the Display Model to 15 using the command "DisplayModel 15"
6464

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-
6868
`DisplayType 1` for the 6-digit TM1637
6969

7070

7171
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_.:
72-
<br><br><br>
7372

7473
## Commands and Usage
75-
<br>
74+
7675

7776
Console/MQTT Commands | Description | values |
7877
---------------------|---------------------------------------------------------|------------|
@@ -93,24 +92,19 @@ DisplayClock | Displays a clock. <br> `DisplayClock 1` displays a clock in 12-ho
9392
| |
9493

9594

96-
<br><br>
97-
9895
## Usage in Rules
9996
All the above commands ca be used in Tasmota [Rules](https://tasmota.github.io/docs/Rules/), as usual.
10097

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:
10299

103100
```haskell
104101
Rule1
105102
ON Tele-AM2301#Temperature DO DisplayText %value%^ ENDON
106103
```
107104

108-
<br><br>
109-
110105
## TM1637 Images
111106

112-
<br>
113-
The TM1637 4-digit module (back and front):<br><br>
107+
The TM1637 4-digit module (back and front):
114108

115109
![TM1637](_media/peripherals/TM1637-back-and-front.jpg)
116110

0 commit comments

Comments
 (0)