arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.16k stars 4.8k forks source link

Mismatch of GPIO3/4 with Sonoff SV calling it GPIO4/5 #40

Closed hoekbrwr closed 7 years ago

hoekbrwr commented 7 years ago

I am confused now. The pins GPIO4 and 5 are called GPIO3 and 4 in your template. I connected a LED WS2812 string to GPIO4 and configured that, works very nice. I noticed @mihalski with his Huzzah Feather defined the template with GPIO4 and 5 available for that module. On the board it is called 4 and 5! What is going on here, I am obviously missing something?

arendst commented 7 years ago

Yes. You're missing a flag I forgot to enter.

Quick workaround: update sonoff_template.h line 111 from

0, 0, 0, 0, 0, 0, 0,

to

GPIO_USER,        // GPIO05 Optional sensor
0, 0, 0, 0, 0, 0,
hoekbrwr commented 7 years ago

What about line 109? GPIO3 is not there! A lot of other modules also define 3 and 4, but do they have them? I now of Basic only having GPIO14

arendst commented 7 years ago

GPIO03 is the RXD port and some people are using it as it is easily accessible by the programming header.