-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
GPIO numbering wrong (GIT8266O-717) #1139
Comments
Hi, It also should be noted that GPIO_Pin_4 is already a mask : so you must use it "as is". You might also be interested in this sdk bug (still open): Regards. |
I know the Dx labels are used in Arduino. But they are on the silkscreen so I defined them, mapping to the GPIO number as per pinout. I excluded this in the given example.
Now, suppose I attach a led to GPIO13 (or D7):
PS: It is indeed already a mask, so somebody should change the example:
|
My bad. Confused GPIO_Pin_x with plain GPIO number |
Hi, #define GPIO_OUTPUT_IO_0 15 it is the same of by the way, I think the the proper definitions of D0 and D1 are: because the gpio functions (other than the configuration) require a "pure" pin number instead. |
I've installed the latest SDK on Windows 10. Firmware is running on a Wemos D1 Mini.
I tried to run a simple blink but the pin numbering is completely wrong.
With
a LED blinks on D0 which imho should map to GPIO16.
Output is
With
a LED blinks on D2 which should map to GPIO4
Output is
It becomes worse when using GPIO_Pin_5:
The text was updated successfully, but these errors were encountered: