micropython-lib/micropython
Max Holliday 60d137029f lora-sx126x: Change to class-level memoryview for _cmd buf.
Currently, the LoRa SX126x driver dynamically creates at least one,
sometimes two, memoryview objects with each call to `_cmd`.  This commit
simply provides the class with a long-lived memoryview object for `_cmd` to
easily slice as necessary.

Unlike the SX127x chips, Semtech unfortunately designed the SX126x modems
to be more command-centric (as opposed to directly setting registers).
Given the amount `_cmd` is called during normal device operation, even a
minor improvement here should have a decent impact.

Basic TX and RX tests pass on hardware.

Signed-off-by: Max Holliday <maholli@stanford.edu>
2024-07-23 15:12:50 +10:00
..
aioespnow
aiorepl
bluetooth aioble/multitests: Store a reference to tasks and cancel when done. 2024-06-14 10:35:06 +10:00
bundles
drivers all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
espflash
lora lora-sx126x: Change to class-level memoryview for _cmd buf. 2024-07-23 15:12:50 +10:00
mip
mip-cmdline
net all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
senml
uaiohttpclient
ucontextlib
udnspkt all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
umqtt.robust all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
umqtt.simple all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
upysh
urequests
urllib.urequest all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
usb usb-device-keyboard: Fix ; and ` keycode names. 2024-07-03 17:21:55 +10:00
xmltok
README.md

README.md

MicroPython-specific packages

These are packages that have been written specifically for use on MicroPython.

Packages in this directory should not have the same name as modules from the Python Standard Library.

Future plans

  • More organised directory structure based on purpose (e.g. drivers, network, etc).