applio / lightlora_micropython Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mzachmann/lightlora_micropython
Lightweight Interrupt-driven Semtech SX127x Library for MicroPython
License: MIT License
This project forked from mzachmann/lightlora_micropython
Lightweight Interrupt-driven Semtech SX127x Library for MicroPython
License: MIT License
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
The order of the arguments in the definition suggest destination then source:
def sendPacket(self, dstAddress, localAddress, outGoing):
When accessing packets received, the values appearing in packet.dstAddress
and packet.srcAddress
appear reversed (where packet
is an instance of LoraPacket)?
Currently, params are hard-coded in the init:
params = {
'tx_power_level': 5,
'signal_bandwidth': 125E3,
'spreading_factor': 7,
'coding_rate': 5,
'enable_CRC': True,
}
Exposing them in the init would permit other spreading factors, etc. to be easily experimented with or set.
Per https://docs.micropython.org/en/latest/pyboard/library/utime.html:
Some boards may accept seconds as a floating-point number to sleep for a fractional number of seconds. Note that other boards may not accept a floating-point argument, for compatibility with them use sleep_ms() and sleep_us() functions.
Try applying black (ref: https://black.readthedocs.io/en/stable/) to see how it does here.
Methods such as LoraUtil.sendPacket
look more Java or C++ like. A more pythonic name might be LoraUtil.send_packet
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.