arduino-LoRa
arduino-LoRa copied to clipboard
What to do with DIO1 through 5
Hi,
I'm getting this library to work very well and am quite happy with it. However, I am curious on what the DIO1 through 5 can be used for. Indeed, when starting LoRa one can set the callback pin to DIO0 but how are the other pins used?
It is quite complex, and depends on many factors. First, the uses of DIOØ to 5 depends on whether the chip is in Continuous Mode or in Packet Mode. Then, it depends on the state the chip is in: Sleep, Standby, FSRxTx, Rx, Tx. And finally, it depends on which setting it is on: each pin has 4 states ØØ to 11. This is detailed in the Semtech SX1276, SX1277, SX1278, SX1279 Datasheet. Here are a couple of tables.


Their configuration is controlled through RegDioMapping1 and RegDioMapping2.
