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:


Pycom on Twitter