Skip to content

Commit 8247d4c

Browse files
authored
wrap long lines
1 parent 980fd60 commit 8247d4c

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

  • src/docs/devices/dingtian-dt-r002

src/docs/devices/dingtian-dt-r002/index.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,29 @@ difficulty: 3
99

1010
# Dingtian DT-R002
1111

12-
A 2-channel relay board with an ESP32 and an Ethernet interface. Available direct from the manufacturer on [AliExpress](https://www.aliexpress.com/item/4001232791244.html).
12+
A 2-channel relay board with an ESP32 and an Ethernet interface. Available direct from the manufacturer on
13+
[AliExpress](https://www.aliexpress.com/item/4001232791244.html).
1314

14-
Unlike the variants with more channels, the two relays on this model are directly controlled by GPIOs and no I/O expander is used.
15+
Unlike the variants with more channels, the two relays on this model are directly controlled by GPIOs and no I/O
16+
expander is used.
1517

1618
When ordering this board ask for relay board with test firmware, otherwise the ESP32 will be locked.
1719

18-
Initial programming can then be done using the [pin descriptions](https://github.com/dtlzp/relay_dev_demo/blob/main/gpio_pinout/2ch.png) and
19-
[pinout photo](https://github.com/dtlzp/relay_dev_demo/blob/main/gpio_pinout/debug_port_2CH_V2.png). Disconnect external power while programming.
20-
Connect GND and 3V3 to your programmer's power supply (which must be set to 3.3V). Connect IO1 (TX) to your programmer's RX, and IO3 (RX) to your programmer's TX.
21-
Connect IO0 to GND while booting to enter bootloader. Once programmed, you can perform future upgrades OTA.
20+
Initial programming can then be done using the
21+
[pin descriptions](https://github.com/dtlzp/relay_dev_demo/blob/main/gpio_pinout/2ch.png) and
22+
[pinout photo](https://github.com/dtlzp/relay_dev_demo/blob/main/gpio_pinout/debug_port_2CH_V2.png).
23+
24+
Disconnect external power while programming. Connect GND and 3V3 to your programmer's power supply (which must be set
25+
to 3.3V). Connect IO1 (TX) to your programmer's RX, and IO3 (RX) to your programmer's TX. Connect IO0 to GND while
26+
booting to enter bootloader. Once programmed, you can perform future upgrades OTA.
2227

2328
## Basic Configuration
2429

25-
The ESP32 naturally supports wifi, however as you've bought this relay board because it has Ethernet, the example configuration
26-
here enables only Ethernet and not wifi.
30+
The ESP32 naturally supports wifi, however as you've bought this relay board because it has Ethernet, the example
31+
configuration here enables only Ethernet and not wifi.
2732

28-
If you bought the boxed version, both the LED and the "factory" button are within the box and inaccessible when closed, but are exposed in this example anyway.
33+
If you bought the version with a case, both the LED and the "factory" button are within the case and are inaccessible
34+
when closed, but are exposed in this example anyway.
2935

3036
```yaml
3137
esphome:
@@ -39,7 +45,8 @@ esp32:
3945
minimum_chip_revision: 3.1
4046
sram1_as_iram: true
4147

42-
# Above the "FACTORY" button there are two LEDs. One is wired in series with the switch and the other is controllable via GPIO. Use the second one as a status indicator.
48+
# Above the "FACTORY" button there are two LEDs. One is wired in series with the switch and the other is
49+
# controllable via GPIO. Use the second one as a status indicator.
4350
status_led:
4451
pin:
4552
number: GPIO32

0 commit comments

Comments
 (0)