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 all: Change use of "uasyncio" to "asyncio". 2024-06-14 10:29:46 +10:00
aiorepl all: Change use of "uasyncio" to "asyncio". 2024-06-14 10:29:46 +10:00
bluetooth aioble/multitests: Store a reference to tasks and cancel when done. 2024-06-14 10:35:06 +10:00
bundles ssl: Restructure micropython SSL interface to a new tls module. 2024-02-07 12:12:13 +11:00
drivers all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
espflash all: Enable Ruff lint F541 'f-string without any placeholders'. 2024-05-15 18:11:46 +10:00
lora lora-sx126x: Change to class-level memoryview for _cmd buf. 2024-07-23 15:12:50 +10:00
mip mip: Bump minor version. 2024-05-15 13:53:01 +10:00
mip-cmdline micropython/mip: Add command-line functionality for the Unix port. 2022-11-09 12:43:04 +11:00
net all: Use non-u versions of built-in modules. 2024-06-14 10:35:06 +10:00
senml senml: Use the updated cbor2 API. 2024-03-19 17:29:22 +11:00
uaiohttpclient all: Change use of "uasyncio" to "asyncio". 2024-06-14 10:29:46 +10:00
ucontextlib all: Enable ruff F841 'Local variable is assigned to but never used'. 2024-05-15 18:05:21 +10:00
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 all: Replace metadata.txt with manifest.py. 2022-09-05 17:50:28 +10:00
urequests requests: Rename urequests to requests. 2023-07-23 11:41:44 +10:00
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 xmltok: Bump patch version. 2023-07-23 11:48:25 +10:00
README.md top: Update top-level docs. 2022-12-16 17:16:03 +11:00

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