mirror of https://github.com/arendst/Tasmota.git
Shorten GPIO example list and linked to full list
parent
994ca53ec8
commit
5f8d23ef6c
|
@ -1,9 +1,8 @@
|
||||||
One capability of Tasmota is that you can connect additional things to available pins on the [ESP8266](https://en.wikipedia.org/wiki/ESP8266) that controls these devices.
|
One capability of Tasmota is that you can connect additional things to available pins on the [ESP8266](https://en.wikipedia.org/wiki/ESP8266) that controls these devices.
|
||||||
|
|
||||||
If a pin is defined as GPIO_USER in the module template, you can assign it one of the following functions (as of 3/9/17 version 4.0.3):
|
If a pin is defined as GPIO_USER in the module template, you can assign one of the following example functions (complete [list](https://github.com/arendst/Sonoff-Tasmota/wiki/Components#components-list)):
|
||||||
```
|
```
|
||||||
* GPIO_NONE, // Not used
|
* GPIO_NONE, // Not used
|
||||||
* GPIO_DHT11, // DHT11
|
|
||||||
* GPIO_DHT21, // DHT21, AM2301
|
* GPIO_DHT21, // DHT21, AM2301
|
||||||
* GPIO_DHT22, // DHT22, AM2302, AM2321
|
* GPIO_DHT22, // DHT22, AM2302, AM2321
|
||||||
* GPIO_DSB, // Single wire DS18B20 or DS18S20
|
* GPIO_DSB, // Single wire DS18B20 or DS18S20
|
||||||
|
@ -12,29 +11,11 @@ If a pin is defined as GPIO_USER in the module template, you can assign it one o
|
||||||
* GPIO_WS2812, // WS2812 Led string
|
* GPIO_WS2812, // WS2812 Led string
|
||||||
* GPIO_IRSEND, // IR remote
|
* GPIO_IRSEND, // IR remote
|
||||||
* GPIO_SWT1, // User connected external switches
|
* GPIO_SWT1, // User connected external switches
|
||||||
* GPIO_SWT2,
|
|
||||||
* GPIO_SWT3,
|
|
||||||
* GPIO_SWT4,
|
|
||||||
* GPIO_KEY1, // Button usually connected to GPIO0
|
* GPIO_KEY1, // Button usually connected to GPIO0
|
||||||
* GPIO_KEY2,
|
|
||||||
* GPIO_KEY3,
|
|
||||||
* GPIO_KEY4,
|
|
||||||
* GPIO_REL1, // Relays (0 = off, 1 = on)
|
* GPIO_REL1, // Relays (0 = off, 1 = on)
|
||||||
* GPIO_REL2,
|
|
||||||
* GPIO_REL3,
|
|
||||||
* GPIO_REL4,
|
|
||||||
* GPIO_REL1_INV, // Relays with inverted signal control (0 = on, 1 = off)
|
* GPIO_REL1_INV, // Relays with inverted signal control (0 = on, 1 = off)
|
||||||
* GPIO_REL2_INV,
|
|
||||||
* GPIO_REL3_INV,
|
|
||||||
* GPIO_REL4_INV,
|
|
||||||
* GPIO_LED1, // Leds (0 = off, 1 = on)
|
* GPIO_LED1, // Leds (0 = off, 1 = on)
|
||||||
* GPIO_LED2,
|
|
||||||
* GPIO_LED3,
|
|
||||||
* GPIO_LED4,
|
|
||||||
* GPIO_LED1_INV, // Leds with inverted signal control (0 = on, 1 = off)
|
* GPIO_LED1_INV, // Leds with inverted signal control (0 = on, 1 = off)
|
||||||
* GPIO_LED2_INV,
|
|
||||||
* GPIO_LED3_INV,
|
|
||||||
* GPIO_LED4_INV
|
|
||||||
```
|
```
|
||||||
|
|
||||||
To make a link between the different naming schemes of pins, connectors and logical functions, the [Pin Definition overview](https://github.com/esp8266/esp8266-wiki/wiki/Pin-definition) in the esp8266 wiki is quite helpful.
|
To make a link between the different naming schemes of pins, connectors and logical functions, the [Pin Definition overview](https://github.com/esp8266/esp8266-wiki/wiki/Pin-definition) in the esp8266 wiki is quite helpful.
|
||||||
|
|
Loading…
Reference in New Issue