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

AT32u4 #118

Open
Rustie0125 opened this issue Oct 16, 2021 · 0 comments
Open

AT32u4 #118

Rustie0125 opened this issue Oct 16, 2021 · 0 comments

Comments

@Rustie0125
Copy link

Hello, I have been attempting to use the library to control the sleep current of the Arduino Micro C board( sparkfun) LEDs, removed , regulator bypassed etc. But Im not having much luck with this library, Couple of notes

I see in the .H file there is mention of usb_t as an on-off option but when you try and use this function in a sketch it returns errors. if I upload default `#include "LowPower.h"

void setup()
{
// No setup is required for this library
}

void loop()
{
// Enter power down state for 8 s with ADC and BOD module disabled
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);

// Do something here
// Example: Read sensor, data logging, data transmission.

}`

Best result is 1.5mAh which is worse then Arduino lowPower library. Im assuming its due to the extra functions not being switched off like the USB, SPI, etc. Im looking fo rht lowest possible code to be woken up by external interrupt but first just trying to achieve the lowest possible sleep state. Where Can I look in the library on how to incorporate the additional functions as present in the .h file or keywords file

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