Shall we also get rid of the pyb and utime imports and use the new ones from machine and time?
Done, all other comments fixed too. Note we can't use __init__.py here due to how this will be frozen, but it doesn't change how it's used, i.e., you can from cmwx1 import * or import individual names, and constants are under Lora.*.
The only change needed in the OpenMV example is:
from cmwx1 import *
lora = Lora(band=Lora.BAND_EU868, poll_ms=60000, debug=False)
``
Done, all other comments fixed too. Note we can't use
__init__.py
here due to how this will be frozen, but it doesn't change how it's used, i.e., you canfrom cmwx1 import *
or import individual names, and constants are underLora.*
.The only change needed in the OpenMV example is: