From 3f365b6228d7feb7b595c3a37fd97490da31bf76 Mon Sep 17 00:00:00 2001 From: arendst Date: Sat, 19 Aug 2017 18:08:06 +0200 Subject: [PATCH] Add Supla Espablo support (#755) --- README.md | 2 +- sonoff/_releasenotes.ino | 5 ++++- sonoff/sonoff.ino | 2 +- sonoff/sonoff_template.h | 17 +++++++++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 53ac1d329..12e520fc4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Sonoff-Tasmota Provide ESP8266 based Sonoff by [iTead Studio](https://www.itead.cc/) and ElectroDragon IoT Relay with Serial, Web and MQTT control allowing 'Over the Air' or OTA firmware updates using Arduino IDE. -Current version is **5.6.1a** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/master/sonoff/_releasenotes.ino) for change information. +Current version is **5.6.1b** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/master/sonoff/_releasenotes.ino) for change information. ### ATTENTION All versions diff --git a/sonoff/_releasenotes.ino b/sonoff/_releasenotes.ino index 0e1e7f09c..429e93858 100644 --- a/sonoff/_releasenotes.ino +++ b/sonoff/_releasenotes.ino @@ -1,4 +1,7 @@ -/* 5.6.1a +/* 5.6.1b + * Add Supla Espablo support (#755) + * + * 5.6.1a * Shrink module configuration webpage * * 5.6.1 20170818 diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index 38660811c..aaf9b477e 100644 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -25,7 +25,7 @@ - Select IDE Tools - Flash Size: "1M (no SPIFFS)" ====================================================*/ -#define VERSION 0x05060101 // 5.6.1a +#define VERSION 0x05060102 // 5.6.1b enum log_t {LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL}; enum week_t {Last, First, Second, Third, Fourth}; diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index 0737293f8..adf932dbd 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -156,6 +156,7 @@ enum module_t { SONOFF_T11, SONOFF_T12, SONOFF_T13, + SUPLA1, MAXMODULE }; /********************************************************************************************/ @@ -197,6 +198,7 @@ const uint8_t nicelist[MAXMODULE] PROGMEM = { MOTOR, ELECTRODRAGON, EXS_RELAY, + SUPLA1, WION, H801, HUAFAN_SS, @@ -602,6 +604,21 @@ const mytmplt modules[MAXMODULE] PROGMEM = { GPIO_REL1, // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On) GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) 0, 0, 0, 0 + }, + { "Supla Espablo", // Supla Espablo (ESP8266) - http://www.wykop.pl/ramka/3325399/diy-supla-do-puszki-instalacyjnej-podtynkowej-supla-org/ + 0, // GPIO00 Flash jumper + GPIO_USER, // GPIO01 Serial RXD and Optional sensor + GPIO_DSB, // GPIO02 DS18B20 sensor + GPIO_USER, // GPIO03 Serial TXD and Optional sensor + GPIO_KEY1, // GPIO04 Button 1 + GPIO_REL1, // GPIO05 Relay 1 (0 = Off, 1 = On) + 0, 0, 0, 0, 0, 0, // Flash connection + GPIO_USER, // GPIO12 Optional sensor + GPIO_REL2, // GPIO13 Relay 2 (0 = Off, 1 = On) + GPIO_USER, // GPIO14 Optional sensor + 0, + GPIO_LED1, // GPIO16 Led (1 = On, 0 = Off) + GPIO_ADC0 // ADC0 A0 Analog input } };