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

Update lowpower.py to use bitwise addition for setting wake bits #10

Closed coplate closed 2 years ago

coplate commented 2 years ago

On my device when testing with multiple pins, I found that only one of them was responding. After researching, I found the python library was concatenating the events instead of performing addition.

This change uses bitwise addition to ensure that it does not stringify the data.

coplate commented 2 years ago

This addresses issue https://github.com/tomjorquera/pico-micropython-lowpower-workaround/issues/9