lnlp / LMIC-node

LMIC-node | One example to rule them all. LMIC-node is an example LoRaWAN application for a node that can be used with The Things Network. It demonstrates how to send uplink messages, how to receive downlink messages, how to implement a downlink command and it provides useful status information. With LMIC-node it is easy to get a working node quickly up and running. LMIC-node supports many popular (LoRa) development boards out of the box. It uses the Arduino framework, the LMIC LoRaWAN library and PlatformIO.
MIT License
223 stars 102 forks source link

Sparkfun ESP32 WROOM with RFM95W support #42

Closed mike6000 closed 2 years ago

mike6000 commented 2 years ago

Is it possible to get this board running with LMIC-node? https://www.sparkfun.com/products/18074

lnlp commented 2 years ago

It looks like that should be possible.

I'm not sure whether this board is (directly) supported in PlatformIO Espressif 32 platform (ESP32 Arduino Core). If not you may select a basic ESP32 board like esp32dev or one of the other basic ESP32 boards already supported by LMIC-node.

You will have to edit an existing BSF in LMIC-node for that (or add a new board definition and BSF yourself). Important settings to adjust for your board are the LMIC pinmappings, probably the SPI pins (if these do not match the standard SPI pins defined in the Arduino BSP) and the pins for the onboard LED (if present).

If you need to explicitly set custom SPI pins (other than defined in the board's Arduino BSP) then have a look at the BSF for the Lopy4 board boardInit() function for an example.