mirror of
https://github.com/sandeepmistry/arduino-LoRa.git
synced 2025-04-19 13:02:14 +03:00
Arduino LoRa
An Arduino library for sending and receiving data using LoRa radios.
Compatible Hardware
- Semtech SX1276/77/78/79 based boards including:
Semtech SX1276/77/78/79 wiring
Semtech SX1276/77/78/79 | Arduino |
---|---|
VCC | 3.3V |
GND | GND |
SCK | SCK |
MISO | MISO |
MOSI | MOSI |
NSS | 10 |
NRESET | 9 |
DIO0 | 2 |
NSS
, NRESET
, and DIO0
pins can be changed by using LoRa.setPins(ss, reset, dio0)
. DIO0
pin is optional, it is only needed for receive callback mode. If DIO0
pin is used, it must be interrupt capable via attachInterrupt(...)
.
NOTE: Some boards (like the Arduino Nano), cannot supply enough current for the SX127x in TX mode. This will cause lockups when sending, be sure to use an external 3.3V supply that can provide at least 120mA's when using these boards.
Installation
Using the Arduino IDE Library Manager
- Choose
Sketch
->Include Library
->Manage Libraries...
- Type
LoRa
into the search box. - Click the row to select the library.
- Click the
Install
button to install the library.
Using Git
cd ~/Documents/Arduino/libraries/
git clone https://github.com/sandeepmistry/arduino-LoRa LoRa
API
See API.md.
Examples
See examples folder.
License
This libary is licensed under the MIT Licence.
Languages
C++
100%