Skip to main content

Raspberry Pi LoRa library for SX1280

Project description

rpi-sx1280 - SX1280 Python library for Raspberry Pi

Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

Easy to install and use, this library provides an essential API for any SX1280 LoRa module connected to your Raspberry Pi via the SPI interface.

Getting started

In order to use this library install it first:

pip install rpi-sx1280

Now you can use it within your code.

Basic module initialisation

import RPi.GPIO as GPIO

from rpi_sx1280.sx1280 import SX1280


GPIO.setmode(GPIO.BCM)

spi_idx = 0
spi_cs = 1
busy_gpio_idx = 22
reset_gpio_idx = 17

lora = SX1280(spi_idx, spi_cs, busy_gpio_idx, reset_gpio_idx)

Developers guide

If you'd like to work on the library itself here are a few things you should know.

Requirements

This library by default uses the following tools, frameworks, etc.:

  • Python 3 - main supported language
  • hatch - used as project management tool for Python
  • GitHub - used as version control, issue tracking, docs

Setup environment

  1. Install python locally with pip. On Linux you can do this via: sudo apt install python3-dev python3-pip.
  2. Now install pipx as it is usually better to install hatch in this way to use it globally. sudo apt install pipx && pipx ensurepath and re-init the shell session.
  3. Ready to start, setup local environment with hatch env create.

Running tests

Building project

Updating version

This library follows the semver principles. You can use hatch to update the version with necessary information.

To bump the version use hatch version <segment>.

Here you can find the supported segments docs: hatch.io > supported segments

Publishing

In order to publish the current state of the library you need to create a new tag and push it to the repository.

git tag -a 0.1.0 -m "Initial release"
git push origin 0.1.0

And the GitHub Actions will take care of the rest.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpi_sx1280-0.0.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

rpi_sx1280-0.0.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file rpi_sx1280-0.0.2.tar.gz.

File metadata

  • Download URL: rpi_sx1280-0.0.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for rpi_sx1280-0.0.2.tar.gz
Algorithm Hash digest
SHA256 83c3842416141c143a942b45c29b20fd623a9ffa741c58653da7bddb5e418c7a
MD5 eeab70c5ea2c972b38a1fd5e9a1ae5cb
BLAKE2b-256 9bb3d75b3abcac71fa9257fb19666338895f8d680d97bc4997f9043392bfb2ed

See more details on using hashes here.

File details

Details for the file rpi_sx1280-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rpi_sx1280-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for rpi_sx1280-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 764197913b43fb31b0e287ae6ef5c014181ea027eaca2d8c8f07b23c07396c4f
MD5 7a798a1ca75ea0a004894cff463fc6cf
BLAKE2b-256 5b5f1d035af9127ba739e9b2a13686ca446c03898a51e7c8a56641783f5a421a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page