Skip to content

BUILTIN_LED should be LED_BUILTIN #1555

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

Closed
SukkoPera opened this issue Feb 2, 2016 · 5 comments
Closed

BUILTIN_LED should be LED_BUILTIN #1555

SukkoPera opened this issue Feb 2, 2016 · 5 comments

Comments

@SukkoPera
Copy link

Arduino's macro that holds the number of the built-in led in boards is LED_BUILTIN. For some reason, this core uses BUILTIN_LED, leading to unportable code.

See: https://www.arduino.cc/en/Reference/Constants

@tuxedo0801
Copy link
Contributor

I also stumbled on this.

Is there a reason why the macro does not match?

@tuxedo0801
Copy link
Contributor

Added a PR for this: #1556

@SukkoPera
Copy link
Author

Well done :)

@tuxedo0801
Copy link
Contributor

@SukkoPera
Please close, PR #1556 is been merged.

@SukkoPera
Copy link
Author

Ok, thanks. I'm not really for keeping both macros, but fair enough.

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

No branches or pull requests

2 participants