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

Fix for GPIO0/2/4/5 not being able to be used as inputs (GIT8266O-649) #1071

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amakukha
Copy link

@amakukha amakukha commented Mar 29, 2021

After migrating my project from Arduino to ESP SDK, I noticed that GPIO2 couldn't work as input anymore. I tried to upload the basic GPIO example with GPIO2 being the input and it didn't work. After some investigating, it turned out that the GPIO driver has a problem: it treats pins GPIO0/2/4/5 as RTC pins when setting the GPIO function bits, despite there being only one RTC pin according to the ESP8266 pin list – RTC_GPIO0.

This is a fix for this problem.

@CLAassistant
Copy link

CLAassistant commented Mar 29, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions bot changed the title Fix for GPIO0/2/4/5 not being able to be used as inputs Fix for GPIO0/2/4/5 not being able to be used as inputs (GIT8266O-649) Mar 29, 2021
dsptech added a commit to dsptech/ESP8266_RTOS_SDK that referenced this pull request Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants