Skip to content

Added boards constants for LED_BUILTIN and KEY_BUILTIN #177

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

Merged
merged 2 commits into from
Feb 7, 2017

Conversation

@@ -9,6 +9,12 @@
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
#define digitalPinHasPWM(p) (p < 34)

static const uint8_t LED_BUILTIN = 5;
static const uint8_t BUILTIN_LED = 5;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since those are the same, wouldn't it be better if one of them is define to forward to the other one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right, I will do it. I tried to do it same way as is in ESP8266 core.

@me-no-dev me-no-dev mentioned this pull request Feb 6, 2017
@arcao
Copy link
Contributor Author

arcao commented Feb 6, 2017

Done.

@me-no-dev me-no-dev merged commit e62ecb3 into espressif:master Feb 7, 2017
@me-no-dev
Copy link
Member

thanks :)

@arcao arcao deleted the fix-boards-pins branch February 9, 2017 20:06
darkxst pushed a commit to darkxst/arduino-esp32 that referenced this pull request Dec 5, 2024
* RTC reserves 512 only

* RTC reserves 512 only
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