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

Bug with ST32F411CEU6 V3.1 in arduino programming, Platformio and STM32LowPower lib (STM32duino Low Power) #38

Open
sfekilou opened this issue Jun 11, 2022 · 0 comments

Comments

@sfekilou
Copy link

sfekilou commented Jun 11, 2022

With Black Pill ST32F411CEU6, arduino coding, platformio

If the code is:
``
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
``

The LED is blinking.

But if the code is:
`
#include <STM32LowPower.h> //Last STM32duino Low Power lib
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
LowPower.begin();
}

void loop() {
digitalWrite(LED_BUILTIN, HIGH);
LowPower.deepSleep(2000);
digitalWrite(LED_BUILTIN, LOW);
LowPower.deepSleep(2000);
}
`
The LED does not blinking
What is the problem ?
Do you know a method to perform a deepsleep ?

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

1 participant