From b148c8bbe5baeb17bf37ae4d4fac712cc2339285 Mon Sep 17 00:00:00 2001 From: andrethomas Date: Mon, 3 Dec 2018 17:30:06 +0200 Subject: [PATCH 1/2] Add GPIO2 for Sonoff Basic Template Add GPIO2 for Sonoff Basic Template --- sonoff/sonoff_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index c4fcfb377..225d3767a 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -517,7 +517,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = { { "Sonoff Basic", // Sonoff Basic (ESP8266) GPIO_KEY1, // GPIO00 Button GPIO_USER, // GPIO01 Serial RXD and Optional sensor - 0, // GPIO02 + GPIO_USER, // GPIO02 Only available on newer Sonoff Basic R2 V1 GPIO_USER, // GPIO03 Serial TXD and Optional sensor GPIO_USER, // GPIO04 Optional sensor 0, // GPIO05 From dcaf6164d443cd3cdb113f1c346944bdad542009 Mon Sep 17 00:00:00 2001 From: andrethomas Date: Mon, 3 Dec 2018 17:34:35 +0200 Subject: [PATCH 2/2] Add support for GPIO02 for newer Sonoff Basic Add support for GPIO02 for newer Sonoff Basic --- sonoff/_changelog.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/sonoff/_changelog.ino b/sonoff/_changelog.ino index 535d386dd..3709195fe 100644 --- a/sonoff/_changelog.ino +++ b/sonoff/_changelog.ino @@ -2,6 +2,7 @@ * Removed command SetOption36 (#4497) * Add command SetOption60 0/1 to select dynamic sleep (0) or sleep (1) (#4497) * Update SR-04 driver to use NewPing library (#4488) + * Add support for GPIO02 for newer Sonoff Basic (#4518) * * 6.3.0.14 20181127 * Add Command CalcRes to set number of decimals (0 - 7) used in commands ADD, SUB, MULT and SCALE (#4420)