From 4eefce887afa97de4d67471dbbba239fc4c4b910 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Thu, 23 Jan 2020 09:46:50 -0300 Subject: [PATCH] Update API.md Remove this warning Add dio0 interrupt callbacks --- API.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/API.md b/API.md index 0f952ef..78f054d 100644 --- a/API.md +++ b/API.md @@ -38,6 +38,10 @@ To save further pins one could connect the reset pin of the MCU with reset pin o * `reset` - set to `-1` to omit this pin +#### Pin dio0 interrupt callbacks + +The dio0 pin can be used for transmission finish callback and/or receiving callback, check `onTxDone` and `onReceive`. + ### Set SPI interface Override the default SPI interface used by the library. **Must** be called before `LoRa.begin()`. @@ -119,7 +123,7 @@ Returns `1` on success, `0` on failure. ### Tx Done -**WARNING**: Not supported on the Arduino MKR WAN 1300 board! +**WARNING**: TxDone callback uses the interrupt pin on the `dio0` check `setPins` function! ### Register callback @@ -154,7 +158,7 @@ Returns the packet size in bytes or `0` if no packet was received. ### Continuous receive mode -**WARNING**: Not supported on the Arduino MKR WAN 1300 board! +**WARNING**: Receive callback uses the interrupt pin on the `dio0`, check `setPins` function! #### Register callback