Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10979
    Donny
    Participant

    Hello all,
    I am trying to add a sleep cycle to my code and I am experiencing a compiling error. I currently have lowpower.h v 1.8. I tried uploading the powerDownWakePeriodic.ino example and get the error. Taking the library call out of the code removes the error, so I am assuming something is wrong in the cpp or h header. I am using the atmega328p and 1.8.8 version of the IDE on mac osx mojave 10.14.2.

    For reference here is the sketch:

    #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.
    }
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.