Use Battery (Pull P8 high)



  • To boot from the battery on the Expansion Board v3.0 I understand that you have to pull P8 high. I tried this using the following code:

    from machine import Pin
    
    pin=Pin('P8',Pin.OUT)
    pin.value(1)
    
    print(pin.value())
    

    but that does not seem to have any effect. Do you know what is wrong with the code?



  • @max You have to pull up P8 physically, because that sensing is done before MicroPython gets active.


Log in to reply
 

Pycom on Twitter