tomjorquera / pico-micropython-lowpower-workaround

Workaround for low power support in micropython for the Raspberry pico
GNU Lesser General Public License v3.0
58 stars 12 forks source link

Noob needs help #7

Closed oxicottin closed 2 years ago

oxicottin commented 2 years ago

Hello, I need my entire Tiny2040 to go dormant after a while loop and wake by button press lets say GPIO-5. I know how to upload the library you posted but I don't understand the example on how to incorporate it into mine? If I'm right it seems you make selected "Pins" dormmate and I need all my pins dormmate and to wake on the button press.

tomjorquera commented 2 years ago

Hey @oxicottin ! Sorry for the late reply.

No it's not only selected pins that go dormant, but the whole pico. The pins referenced in the code are the pins that can be used to wake up the pico (but looking at my rather discutable choice of variable names examples, I can get the confusion)

Hope that clarifies things up!