Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hoekbrwr opened this issue Feb 8, 2017 · 3 comments
Closed

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

hoekbrwr opened this issue Feb 8, 2017 · 3 comments
Labels
bug Type - Confirmated Bug

Comments

@hoekbrwr
Copy link

hoekbrwr commented Feb 8, 2017

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
Copy link
Owner

arendst commented Feb 8, 2017

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,

@arendst arendst added the bug Type - Confirmated Bug label Feb 8, 2017
@hoekbrwr
Copy link
Author

hoekbrwr commented Feb 8, 2017

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
Copy link
Owner

arendst commented Feb 8, 2017

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

arendst added a commit that referenced this issue Feb 10, 2017
3.9.13 20170210
* Add FlashChipSize to Status 4
* Removed redundant DHT2 option and code
* Add Sonoff SV GPIO pin 05 configuration (#40)
* Add configuration file backup and restore via web page
* Fix latency due to light_sleep mode even if sleep was set to zero
(#50)
arendst added a commit that referenced this issue Feb 10, 2017
3.9.13 20170210
* Add FlashChipSize to Status 4
* Removed redundant DHT2 option and code
* Add Sonoff SV GPIO pin 05 configuration (#40)
* Add configuration file backup and restore via web page
* Fix latency due to light_sleep mode even if sleep was set to zero
(#50)
@arendst arendst closed this as completed Feb 11, 2017
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
3.9.13 20170210
* Add FlashChipSize to Status 4
* Removed redundant DHT2 option and code
* Add Sonoff SV GPIO pin 05 configuration (arendst#40)
* Add configuration file backup and restore via web page
* Fix latency due to light_sleep mode even if sleep was set to zero
(arendst#50)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
3.9.13 20170210
* Add FlashChipSize to Status 4
* Removed redundant DHT2 option and code
* Add Sonoff SV GPIO pin 05 configuration (arendst#40)
* Add configuration file backup and restore via web page
* Fix latency due to light_sleep mode even if sleep was set to zero
(arendst#50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type - Confirmated Bug
Projects
None yet
Development

No branches or pull requests

2 participants