Error in example deep sleep shield api doc



  • There seems to be an error in the deep shield api example of the doc chapter 7.4.4.1.

    from deepsleep import DeepSleep
    
    ds = DeepSleep() 
    

    needs to be replaced by:

    import deepsleep
    
    ds = deepsleep.DeepSleep()
    

    to prevent an error in

    if wake_s['wake'] == deepsleep.PIN_WAKE:


Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.