diff --git a/README.md b/README.md index cd96f845e..a59f0b69c 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Alternative firmware for _ESP8266 based devices_ like [iTead](https://www.itead. [![GitHub version](https://img.shields.io/github/release/arendst/Sonoff-Tasmota.svg)](https://github.com/arendst/Sonoff-Tasmota/releases/latest) [![GitHub download](https://img.shields.io/github/downloads/arendst/Sonoff-Tasmota/total.svg)](https://github.com/arendst/Sonoff-Tasmota/releases/latest) [![License](https://img.shields.io/github/license/arendst/Sonoff-Tasmota.svg)](https://github.com/arendst/Sonoff-Tasmota/blob/master/LICENSE.txt) +[![Chat](https://img.shields.io/discord/479389167382691863.svg)](https://discord.gg/Ks2Kzd4) If you like **Sonoff-Tasmota**, give it a star, or fork it and contribute! @@ -118,6 +119,7 @@ Libraries used with Sonoff-Tasmota are: - [arduino mqtt](https://github.com/256dpi/arduino-mqtt) - [Bosch BME680](https://github.com/BoschSensortec/BME680_driver) - [C2 Programmer](http://app.cear.ufpb.br/~lucas.hartmann/tag/efm8bb1/) +- [esp-epaper-29-ws-20171230-gemu](https://github.com/gemu2015/Sonoff-Tasmota/tree/displays/lib) - [esp-knx-ip](https://github.com/envy/esp-knx-ip) - [I2Cdevlib](https://github.com/jrowberg/i2cdevlib) - [IRremoteEsp8266](https://github.com/markszabo/IRremoteESP8266) @@ -125,6 +127,7 @@ Libraries used with Sonoff-Tasmota are: - [Liquid Cristal](https://github.com/marcoschwartz/LiquidCrystal_I2C) - [MultiChannelGasSensor](http://wiki.seeedstudio.com/Grove-Multichannel_Gas_Sensor/) - [NeoPixelBus](https://github.com/Makuna/NeoPixelBus) +- [NewPing](https://bitbucket.org/teckel12/arduino-new-ping/wiki/Home) - [OneWire](https://github.com/PaulStoffregen/OneWire) - [PubSubClient](https://github.com/knolleary/pubsubclient) - [rc-switch](https://github.com/sui77/rc-switch) diff --git a/REFERENCE.md b/REFERENCE.md new file mode 100644 index 000000000..22bd77899 --- /dev/null +++ b/REFERENCE.md @@ -0,0 +1,17 @@ +## Tasmota Reference +Tasmota backgound information. + +## Supported Smart Switch with Energy Monitoring GPIO usage +Module | GPIO00 | GPIO01 | GPIO02 | GPIO03 | GPIO04 | GPIO05 | GPIO12 | GPIO13 | GPIO14 | GPIO15 +-------|--------|--------|--------|--------|--------|--------|--------|--------|--------|-------- +Sonoff Pow | KEY1 | - | - | - | - | NRG_SEL | REL1 | NRG_CF1 | HLW_CF | LED1 +Sonoff Pow R2 | KEY1 | RXD | - | TXD | - | - | REL1 | LED1_INV | - | - +Shelly 2 | - | RXD | - | TXD | REL1 | REL2 | SWT1 | - | SWT2 | - +Huafan SS | LED1_INV | - | - | LED2_INV | KEY1 | REL1_INV | NRG_CF1 | NRG_SEL | HLW_CF | - +KMC 70011 | KEY1 | - | - | - | HLW_CF | NRG_CF1 | NRG_SEL | LED1_INV | REL1 | - +Teckin | - | KEY1 | - | LED2_INV | HJL_CF | NRG_CF1 | NRG_SEL_INV | LED1_INV | REL1 | - +AplicWDP303075 | - | - | - | KEY1 | HLW_CF | NRG_CF1 | NRG_SEL_INV | LED1_INV | REL1 | - +Gosund SP1 v23 | - | LED1_INV | - | KEY1 | HJL_CF | NRG_CF1 | NRG_SEL_INV | LED2_INV | REL1 | - +SK03 Outdoor | KEY1 | - | - | - | HLW_CF | NRG_CF1 | NRG_SEL_INV | LED2_INV | LED1_INV | REL1 +BlitzWolf SHP | LED2_INV | - | LED1_INV | - | - | HJL_CF | NRG_SEL_INV | KEY1 | NRG_CF1 | REL1 +Teckin US | LED2_INV | - | LED1_INV | - | REL1 | HJL_CF | NRG_SEL_INV | KEY1 | NRG_CF1 | - diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 60526c432..3c286ffe8 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -221,6 +221,7 @@ Version 6.4.0 20181217 * Add command IRSend \|0,\,\,.. to allow raw data transmission (#2116) * Add command SetOption56 0/1 to enable wifi network scan and select highest RSSI (#3173) * Add command SetOption57 0/1 to enable wifi network re-scan every 44 minutes with a rssi threshold of 10 to select highest RSSI (#3173) + * Add support for SDM220 (#3610) * Add default sleep 1 to sonoff-basic to lower energy consumption (#4217) * Add wifi status to Tuya (#4221) * Add delays to reduce CPU usage at boot time (#4233) @@ -242,5 +243,4 @@ Version 6.4.0 20181217 * Add support for iFan02 Fanspeed in Domoticz using a selector (#4517) * Add support for GPIO02 for newer Sonoff Basic (#4518) * Add Announce Switches to MQTT Discovery (#4531) - * Add support for SDM220 (#3610) * Add support for Manzoku Power Strip (#4590) diff --git a/platformio.ini b/platformio.ini index 4bf90d0ff..2fc6f7311 100644 --- a/platformio.ini +++ b/platformio.ini @@ -33,19 +33,16 @@ src_dir = sonoff ;env_default = sonoff-PL ;env_default = sonoff-PT ;env_default = sonoff-RU +;env_default = sonoff-SV ;env_default = sonoff-TR ;env_default = sonoff-TW ;env_default = sonoff-UK [common] ; ************************************************************ ; *** Esp8266 core for Arduino version 2.3.0 -platform = espressif8266@1.5.0 -; *** Esp8266 core for Arduino version 2.4.0 -;platform = espressif8266@1.6.0 -; *** Esp8266 core for Arduino version 2.4.1 -;platform = espressif8266@1.7.3 +;platform = espressif8266@1.5.0 ; *** Esp8266 core for Arduino version 2.4.2 -;platform = espressif8266@1.8.0 +platform = espressif8266@1.8.0 ; *** Esp8266 core for Arduino version latest beta ;platform = https://github.com/platformio/platform-espressif8266.git#feature/stage ; *** Esp8266 core for Arduino current version (located in %USERPROFILE%\.platformio\platforms\espressif8266) @@ -57,6 +54,7 @@ board_build.flash_mode = dout ; set CPU frequency to 80MHz (default) or 160MHz board_build.f_cpu = 80000000L +;board_build.f_cpu = 160000000L ; *** Fix espressif8266@1.7.0 induced undesired all warnings build_unflags = -Wall @@ -68,9 +66,17 @@ build_flags = -Wl,-Tesp8266.flash.1m0.ld -Wl,-Map,firmware.map -mtarget-align ; -DUSE_CONFIG_OVERRIDE +; lwIP 2 - Higher Bandwitdh (core 2.4.2) -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH +; lwIP 2 - Higher Bandwitdh no Features (core 2.5.0) +; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH -DVTABLES_IN_FLASH +; if using esp8266 core 2.5.0 (stage) or up +; No exception code in firmware +; -fno-exceptions +; -lstdc++-nox + ; *** Serial Monitor options monitor_speed = 115200 @@ -400,6 +406,20 @@ upload_resetmethod = ${common.upload_resetmethod} upload_speed = ${common.upload_speed} extra_scripts = ${common.extra_scripts} +[env:sonoff-SV] +platform = ${common.platform} +framework = ${common.framework} +board = ${common.board} +board_build.flash_mode = ${common.board_build.flash_mode} +board_build.f_cpu = ${common.board_build.f_cpu} +build_unflags = ${common.build_unflags} +build_flags = ${common.build_flags} -DMY_LANGUAGE=sv-SE +monitor_speed = ${common.monitor_speed} +upload_port = ${common.upload_port} +upload_resetmethod = ${common.upload_resetmethod} +upload_speed = ${common.upload_speed} +extra_scripts = ${common.extra_scripts} + [env:sonoff-TR] platform = ${common.platform} framework = ${common.framework} diff --git a/sonoff/_changelog.ino b/sonoff/_changelog.ino index ec5606065..c3ab8b097 100644 --- a/sonoff/_changelog.ino +++ b/sonoff/_changelog.ino @@ -35,6 +35,7 @@ * Add command IRSend |0,,,.. to allow raw data transmission (#2116) * Add command SetOption56 0/1 to enable wifi network scan and select highest RSSI (#3173) * Add command SetOption57 0/1 to enable wifi network re-scan every 44 minutes with a rssi threshold of 10 to select highest RSSI (#3173) + * Add support for SDM220 (#3610) * Add default sleep 1 to sonoff-basic to lower energy consumption (#4217) * Add wifi status to Tuya (#4221) * Add delays to reduce CPU usage at boot time (#4233) @@ -56,7 +57,6 @@ * Add support for iFan02 Fanspeed in Domoticz using a selector (#4517) * Add support for GPIO02 for newer Sonoff Basic (#4518) * Add Announce Switches to MQTT Discovery (#4531) - * Add support for SDM220 (#3610) * Add support for Manzoku Power Strip (#4590) * * 6.3.0 20181030