1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-09-04 14:42:10 +03:00

Add option to specify PA output pin in Lora.setTxPower(...) (#2)

This commit is contained in:
Sandeep Mistry
2017-03-12 16:17:13 -04:00
parent ee09672759
commit 9c9914a2c4
4 changed files with 32 additions and 9 deletions

7
API.md
View File

@@ -216,10 +216,15 @@ Change the TX power of the radio.
```arduino
LoRa.setTxPower(txPower);
LoRa.setTxPower(txPower, outputPin);
```
* `txPower` - TX power in dB, defaults to `17`
* `outputPin` - (optional) PA output pin, supported values are `PA_OUTPUT_RFO_PIN` and `PA_OUTPUT_PA_BOOST_PIN`, defaults to `PA_OUTPUT_PA_BOOST_PIN`.
Supported values are between `2` and `17`.
Supported values are between `2` and `17` for `PA_OUTPUT_PA_BOOST_PIN`, `0` and `14` for `PA_OUTPUT_RFO_PIN`.
Most modules have the PA output pin connected to PA BOOST,
### Frequency