applio / LightLora_MicroPython

Lightweight Interrupt-driven Semtech SX127x Library for MicroPython
MIT License
2 stars 0 forks source link

Employ micropython.const() in sx127x module #3

Closed applio closed 6 years ago

applio commented 6 years ago

Sections like this (from sx127x.py) seem ripe for employing const() to lower memory consumption:

# registers
REG_FIFO = 0x00
REG_OP_MODE = 0x01
REG_FRF_MSB = 0x06
REG_FRF_MID = 0x07
applio commented 6 years ago

Addressed in commit 1abe94f2f250af62380bd15019824009785baf77