arduino / arduino-lib-mpy

Packages to be included in Arduino MicroPython distros as frozen modules
Mozilla Public License 2.0
1 stars 1 forks source link

lib/cmwx1: Add CMWX1ZZABZ-093 driver. #7

Closed iabdalkader closed 6 months ago

iabdalkader commented 6 months ago

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)
``