Problem: I've noted an increase in power each time I add another switch or LED (even if the switch/LED is not activated).
My question: Is there a way to reduce power during the suspend/sleep period for this configuration using a mosfet or via code?
Code: Select all
LED_1 = pyb.Pin('X5', pyb.Pin.OUT_PP, pull=pyb.Pin.PULL_UP)
Switch_1 = pyb.Pin('Y9', pyb.Pin.IN, pull=pyb.Pin.PULL_UP)
...
if(Switch_1.value() == 0):
# do somthing
