From be8ef4f99ebb991289be2bf6a64fb3a7744a4a08 Mon Sep 17 00:00:00 2001 From: arendst Date: Thu, 9 Mar 2017 18:27:27 +0100 Subject: [PATCH] updated --- Adding-new-Module-types.md | 47 +++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/Adding-new-Module-types.md b/Adding-new-Module-types.md index 7ce73a8b..b65fe6f7 100644 --- a/Adding-new-Module-types.md +++ b/Adding-new-Module-types.md @@ -7,14 +7,39 @@ You can add an additional type by editing both the mytmplt and module_t arrays t The module definition is a list that contains the module name, followed by a definition of what each of the 17 GPIO pins on the ESP-8266 are defined to be. Each item in the list can be either 0 (unused), or a pin definition from the list below. As of 3/9/17 (4.0.3) these functions are: - -* GPIO_PWM1, // Warm -* GPIO_PWM2, // Red (swapped with Blue from original) -* GPIO_PWM3, // Green -* GPIO_PWM4, // Blue (swapped with Red from original) -* GPIO_RXD, // Serial interface -* GPIO_TXD, // Serial interface -* GPIO_HLW_SEL, // HLW8012 Sel output (Sonoff Pow) -* GPIO_HLW_CF1, // HLW8012 CF1 voltage / current (Sonoff Pow) -* GPIO_HLW_CF, // HLW8012 CF power (Sonoff Pow) -* GPIO_USER, // User configurable \ No newline at end of file +``` +* GPIO_SWT1, // User connected external switches +* GPIO_SWT2, +* GPIO_SWT3, +* GPIO_SWT4, +* GPIO_KEY1, // Button usually connected to GPIO0 +* GPIO_KEY2, +* GPIO_KEY3, +* GPIO_KEY4, +* 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_REL2_INV, +* GPIO_REL3_INV, +* GPIO_REL4_INV, +* 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_LED2_INV, +* GPIO_LED3_INV, +* GPIO_LED4_INV +* GPIO_PWM1, // Warm +* GPIO_PWM2, // Red (swapped with Blue from original) +* GPIO_PWM3, // Green +* GPIO_PWM4, // Blue (swapped with Red from original) +* GPIO_RXD, // Serial interface +* GPIO_TXD, // Serial interface +* GPIO_HLW_SEL, // HLW8012 Sel output (Sonoff Pow) +* GPIO_HLW_CF1, // HLW8012 CF1 voltage / current (Sonoff Pow) +* GPIO_HLW_CF, // HLW8012 CF power (Sonoff Pow) +* GPIO_USER // User configurable +``` \ No newline at end of file