Skip to content

Commit dfd7b6b

Browse files
Minor changes
1 parent f7f1b14 commit dfd7b6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/TM1637.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ To use this feature (i.e., if you're not using _tasmota*-display.bin_ precompile
1313
#endif
1414
```
1515
----
16+
<br><br>
1617

1718
TM1637<br>
1819
![TM1637](_media/peripherals/TM1637-front.png)
@@ -57,6 +58,7 @@ For example, if x=3 and y=4, then the configuration would look like the followin
5758

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

61+
<br><br>
6062

6163
Once the GPIO configuration is saved and the ESP8266/ESP32 module restarts, set the Display Model to 15 using the command "DisplayModel 15"
6264

@@ -81,7 +83,7 @@ Once the GPIO configuration is saved and the ESP8266/ESP32 module restarts, set
8183
DisplayFloat | Clears and then displays float (with decimal point) command e.g., "DisplayFloat 12.34". <br> Control `precision`, `length` and `position`. <br> `precision` can be `0` to `NUM_DIGITS` (default), <br> `length` can be `1` to `NUM_DIGITS` (4 or 6), <br> `position` can be `0` (left-most) to `NUM_DIGITS` (right-most). <br> Command example: `DisplayFloat 2.48, 1, 1, 2` This will display ![2.5](_media/peripherals/TM1637-2.5.jpg) | `num`[, `position`[, `precision`[, `length`]]]
8284
DisplayFloatNC | Displays float (with decimal point) as above, but without clearing first. command e.g., "DisplayFloatNC 12.34" | same as above
8385
DisplayBrightness | Set brightness of the display. Command e.g., "DisplayBrightness 2" | 1 to 8
84-
DisplayRaw | Takes upto `NUM_DIGITS` comma-separated integers (0-255) and displays raw segments. <br> Each number represents a 7-segment digit. Each 8-bit number represents individual segments of a digit. <br> For example, the command `DisplayRaw 0, 2, 255, 255` would display ![8.8.](_media/peripherals/TM1637-8.8.jpg) | `position`, `length`, `num1` [, `num2`[, `num3`[, `num4`[, ...upto `NUM_DIGITS` numbers]]...]
86+
DisplayRaw | Takes upto `NUM_DIGITS` comma-separated integers (0-255) and displays raw segments. <br> Each number represents a 7-segment digit. Each 8-bit number represents individual segments of a digit. <br> Segment a=1, b=2, c=4, d=8, e=16, f=32, g=64 and h (decimal point)=128.<br> To turn on all segments, the number would be 1+2+4+8+16+32+64+128 = 255<br> For example, the command `DisplayRaw 0, 2, 255, 255` would display ![8.8.](_media/peripherals/TM1637-8.8.jpg) | `position`, `length`, `num1` [, `num2`[, `num3`[, `num4`[, ...upto `NUM_DIGITS` numbers]]...]
8587
DisplayText | Clears and then displays basic text. Command e.g., `DisplayText a.b12` <br> Control `length` and `position` of the displayed text. <br> `length` can be `1` to `NUM_DIGITS` , <br> `position` can be `0` (left-most) to `NUM_DIGITS-1` (right-most) <br><br> A caret(`^`) symbol in the text input is dispayed as the degrees(`°`) symbol. This is useful for displaying Temperature (or angle)! <br> For example, the command `DisplayText 22.5^` will display ![22.5d](_media/peripherals/TM1637-22.5d.jpg) | `text`[, `position`[, `length`]]
8688
DisplayTextNC | Clears first, then displays text. Usage is same as above. | same as above
8789
DisplayScrollText | Displays scrolling text, upto 50 characters. Command example: `DisplayScrollText tasmota is awesome`| text
@@ -100,7 +102,7 @@ For example, a simple digital thermometer can be implemented by connecting a **D
100102

101103
```haskell
102104
Rule1
103-
On Tele-AM2301#Temperature Do DisplayText %value%^ EndOn
105+
ON Tele-AM2301#Temperature DO DisplayText %value%^ ENDON
104106
```
105107

106108
<br><br>

0 commit comments

Comments
 (0)