Sleep mode adafruit feather m0 adalogger


I am trying to make a remote-sensing instrument. It has to make a measurement every 5 minutes. To save battery I want to make use of the lowpower.h library.

But that does not seem to work:

// **** INCLUDES *****
#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.

And then when I want to verify I get the error:

powerDownWakePeriodic:12: error: 'class LowPowerClass' has no member named 'powerDown'

     LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);  


exit status 1
'class LowPowerClass' has no member named 'powerDown'

Can someone help me?

The powerDown() method is only available for AVR processors. ARM processors (SAMD) only support idle() and standby() methods.