Skip to content

Python380/RP2040MicroModLoRa

Repository files navigation

PLEASE CREDIT THE LINKED REPOSITORY - I DIDN'T FORK IT LIKE I SHOULD HAVE: https://github.com/akshayabali/pico-lora

pico-lora

LoRa communication library for Raspberry Pi RP2040 Microcontroller.

This library is written for RP2040 C++ SDK.

The main changes from the repository credited are a fixed available function (for our setup, may not work for you), and a TX/RX enable setup like Arduino's RadioLib. These changes were required for our modules (RP2040 MicroMod with the MicroMod LoRa 1W function).

Supported Hardware

  • RP2040 boards
    • Raspberry Pi Pico
  • Semtech SX1276/77/78/79 based LoRa boards

Default Pinout

Raspberry Pi Pico Semtech SX1278
3.3V VCC
GND GND
GPIO 18 SCK
GPIO 19 MOSI
GPIO 16 MISO
GPIO 7 DIO0 / G0
GPIO 8 NSS / CS
GPIO 9 RESET
GPIO 10 DIO1 / G1

Default Pinout can be overrided with setPins() function

Installation

  1. Set up the Pico C/C++ SDK
  2. Download module from git and open directory
git clone https://github.com/akshayabali/LoRa-pi-pico.git
cd ./LoRa-RP2040
  1. Set PICO_SDK_PATH
export PICO_SDK_PATH="path to pico-sdk"
  1. Create build directory then run cmake and make:
mkdir build
cd build
cmake ..
make

Notes

Currently this is only tested on SparkFun MicroMod RP2040+LoRa. Feel free to reach out for any bugs or support.

References

This project is based on LoRa Library for Arduino:sandeepmistry/arduino-LoRa

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages