-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
ports/mimxrt/boards/MIMXRT1060_EVK: Enabled led class for MIMXRT1060_EVK #6117
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
ports/mimxrt/boards/MIMXRT1060_EVK: Enabled led class for MIMXRT1060_EVK #6117
Conversation
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.
Hi, thanks for creating the change. I believe you need to make a small adjustment to the macros for turning the LED on/off, if my understanding of the schematics is correct.
Best regards
alphaFred
#define MICROPY_HW_LED_PIN 9 | ||
// MIMXRT1060_EVK has 1 user LED | ||
#define MICROPY_HW_LED1_PIN (GPIO_AD_B0_09) | ||
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_high(pin)) |
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.
According to my understanding of the schematics the user LED is pulled up to 3.3V supply. To switch it on pin should be pulled low I believe.
// MIMXRT1060_EVK has 1 user LED | ||
#define MICROPY_HW_LED1_PIN (GPIO_AD_B0_09) | ||
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_high(pin)) | ||
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin)) |
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.
Respectively here. To switch it off, pin should be pulled high.
board. - Enabled led class for MIMXRT1060_EVK.
6444f75
to
b90ee45
Compare
Yes, you are right, that's my fault, I have updated the PR. |
No problem. I made the same mistake with my PR for adding support to 1020EVK 😄. |
Thank you very much! So you are now supporting 1020EVK? If it is OK, can you please share your plan for the support of the mimxrt port. So that we can avoid doing the duplicate work😊. |
Well that is the board I have sitting on my desk hence I am eager to add it to the As you know I started working on the |
Thanks for this! Rebased and merged in e0d539f |
implement `from __future__ import annotations`
Backport from __future__ import annotations from micropython#6117
board.