Skip to content
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

[rtl872x] Fixes D7 configuration when exiting hibernate mode #2631

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

XuGuohui
Copy link
Member

@XuGuohui XuGuohui commented Mar 1, 2023

Problem

D7 (PA27) outputs high after entering hibernate mode, even if it is configured as OUTPUT and outputs LOW before sleep.

Solution

Configure the PA27 to be no-pull ability before entering hibernate mode.

Steps to Test

Run the attached application.

Example App

void setup() {
    pinMode(D7, OUTPUT);
    digitalWrite(D7, LOW);

    delay(2s);
    System.sleep(SystemSleepConfiguration().mode(SystemSleepMode::HIBERNATE).duration(5s));
}

References

N/A


Completeness

  • User is totes amazing for contributing!
  • Contributor has signed CLA (Info here)
  • Problem and Solution clearly stated
  • Run unit/integration/application tests on device
  • Added documentation
  • Added to CHANGELOG.md after merging (add links to docs and issues)

@XuGuohui XuGuohui merged commit d307810 into develop Mar 2, 2023
@XuGuohui XuGuohui deleted the fix/rtl872x_D7/sc116216 branch March 2, 2023 05:01
@scott-brust scott-brust added this to the 5.3.1 milestone Mar 29, 2023
@technobly technobly changed the title rtl872x: modify D7 configuration in hibernate mode [rtl872x] Fixes D7 configuration when exiting hibernate mode Apr 4, 2023
This pull request was closed.
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.

5 participants