Merge branch 'master' of github.com:SQ9MDD/TTGO-T-Beam-LoRa-APRS into master_sq9mdd

pull/31/head
Łukasz Nidecki 1 year ago
commit f229f1d43f
  1. 6
      lib/BG_RF95/BG_RF95.cpp
  2. 2
      lib/BG_RF95/BG_RF95.h
  3. 2
      platformio.ini

@ -114,7 +114,7 @@ bool BG_RF95::init()
// An innocuous ISM frequency, same as RF22's
setFrequency(433.850);
// Lowish power
setTxPower(20);
setTxPower(23);
return true;
}
@ -390,7 +390,7 @@ void BG_RF95::setTxPower(int8_t power, bool useRFO)
// for the transmitter output
if (useRFO)
{
if (power > 14) power = 14;
if (power > 19) power = 19;
if (power < -1) power = -1;
spiWrite(BG_RF95_REG_09_PA_CONFIG, BG_RF95_MAX_POWER | (power + 1));
} else {
@ -405,7 +405,7 @@ void BG_RF95::setTxPower(int8_t power, bool useRFO)
spiWrite(BG_RF95_REG_0B_OCP, ( BG_RF95_OCP_ON | BG_RF95_OCP_TRIM ) ); // Trim max current tp 240mA
spiWrite(BG_RF95_REG_4D_PA_DAC, BG_RF95_PA_DAC_ENABLE);
//power -= 3;
power = 20; // and set PA_DAC_ENABLE
power = 23; // and set PA_DAC_ENABLE
} else {
spiWrite(BG_RF95_REG_4D_PA_DAC, BG_RF95_PA_DAC_DISABLE);

@ -461,7 +461,7 @@
/// -1 to +14 (for modules that use RFO transmitter pin)
/// The default is 13. Eg:
/// \code
/// driver.setTxPower(10); // use PA_BOOST transmitter pin
/// driver.setTxPower(23); // use PA_BOOST transmitter pin
/// driver.setTxPower(10, true); // use PA_RFO pin transmitter pin
/// \endcode
///

@ -44,7 +44,7 @@ build_flags =
-D 'SHOW_RX_TIME=10000'
-D 'TXFREQ=433.775'
-D 'SPEED_1200' ; comment out to set 300baud
-D 'TXdbmW=20'
-D 'TXdbmW=23'
-D 'ENABLE_OLED'
-D 'ENABLE_LED_SIGNALING'
-D 'NETWORK_TNC_PORT=8001'

Loading…
Cancel
Save