Skip to content

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

Conversation

Albort12138
Copy link
Contributor

board.

  • Enabled led class for MIMXRT1060_EVK.

Copy link
Contributor

@alphaFred alphaFred left a 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))
Copy link
Contributor

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))
Copy link
Contributor

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.

@Albort12138 Albort12138 force-pushed the feature/enable-led-class-for-mimxrt1060_evk branch from 6444f75 to b90ee45 Compare June 7, 2020 08:17
@Albort12138
Copy link
Contributor Author

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

Yes, you are right, that's my fault, I have updated the PR.

@alphaFred
Copy link
Contributor

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 😄.

@Albort12138
Copy link
Contributor Author

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😊.

@alphaFred
Copy link
Contributor

alphaFred commented Jun 7, 2020

So you are now supporting 1020EVK?

Well that is the board I have sitting on my desk hence I am eager to add it to the boards 😄.

As you know I started working on the pin module. So looking forward to exchanging ideas with you about that. I don’t know if this is easier via an issue, PR or email etc.
Once that is done I would like to work on SPI module.

@dpgeorge
Copy link
Member

dpgeorge commented Jun 9, 2020

Thanks for this! Rebased and merged in e0d539f

@dpgeorge dpgeorge closed this Jun 9, 2020
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Mar 8, 2022
implement `from __future__ import annotations`
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants