Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork41
Changed 'built-in' LED used with Zephir boards from RED to GREEN#265
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Changed 'built-in' LED used with Zephir boards from RED to GREEN#265
Uh oh!
There was an error while loading.Please reload this page.
Conversation
pillo79 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This PR is changing a global default, which must be available even on boards that only have 1 LED defined.
Please fix this by settingLED_BUILTIN to the appropriate number or macro in each variant (variants/xxx/pins_arduino.h).
sebromero commentedNov 17, 2025
@pillo79@bogdanarduino Maybe instead of changing it in the variant file, it might be cleaner to change it in the device tree overlay? I suppose Wdyt? |
facchinm commentedNov 17, 2025
Compeltely agree with@sebromero , the right way to tackle this is via device tree |
…ed the fix as overlay config instead, for R1, C33 and H7.
bogdanarduino commentedNov 20, 2025
Thank you all for your feedback! Please recheck the updated fix when you have time. |
pennam commentedNov 27, 2025
Hi@bogdanarduino could you please reword the commits and the PR title to make CI happy ? The pattern is
|
pennam left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
not a dts expert here, but I'm wondering if there is any specific reason to add a new
/ {zephyr,user {instead of changing what we already have some lines above
builtin-led-gpios = <&ioport1 7 GPIO_ACTIVE_LOW>, <&ioport4 0 GPIO_ACTIVE_LOW>, <&ioport8 0 GPIO_ACTIVE_LOW>;
In ArduinoCore-zephyr\cores\arduino\Arduino.h, the built-in LED index was changed from 0 (RED) to 1 (GREEN).