diff --git a/HamShield.cpp b/HamShield.cpp index bc5a6c2..ce1f4e4 100644 --- a/HamShield.cpp +++ b/HamShield.cpp @@ -279,6 +279,7 @@ void HamShield::initialize() { //setVolume2(0xF); setModeReceive(); setTxSourceMic(); + setRfPower(0); setSQLoThresh(80); setSQOn(); } @@ -436,9 +437,10 @@ void HamShield::setTX(bool on_noff){ if((radio_frequency >= 400000) && (radio_frequency <= 520000)) { setTxBand70cm(); } + + delay(50); // delay required by AU1846 } - delay(10); // delay required by AU1846 I2Cdev::writeBitW(devAddr, A1846S_CTL_REG, A1846S_TX_MODE_BIT, on_noff); } bool HamShield::getTX(){ @@ -455,9 +457,9 @@ void HamShield::setRX(bool on_noff){ setGpioLow(4); // V1 setGpioLow(5); // V2 + delay(50); // delay required by AU1846 } - delay(10); // delay required by AU1846 I2Cdev::writeBitW(devAddr, A1846S_CTL_REG, A1846S_RX_MODE_BIT, on_noff); } bool HamShield::getRX(){ diff --git a/examples/AFSK-PacketTester/AFSK-PacketTester.ino b/examples/AFSK-PacketTester/AFSK-PacketTester.ino index 7458e6a..95be66b 100644 --- a/examples/AFSK-PacketTester/AFSK-PacketTester.ino +++ b/examples/AFSK-PacketTester/AFSK-PacketTester.ino @@ -44,7 +44,7 @@ void setup() { radio.initialize(); radio.frequency(144390); - radio.setRfPower(8); + radio.setRfPower(0); dds.start(); radio.afsk.start(&dds); delay(100); diff --git a/examples/AFSK-SerialMessenger/AFSK-SerialMessenger.ino b/examples/AFSK-SerialMessenger/AFSK-SerialMessenger.ino index a9e9657..5e35015 100644 --- a/examples/AFSK-SerialMessenger/AFSK-SerialMessenger.ino +++ b/examples/AFSK-SerialMessenger/AFSK-SerialMessenger.ino @@ -40,7 +40,7 @@ void setup() { Wire.begin(); radio.initialize(); radio.frequency(145570); - radio.setRfPower(15); + radio.setRfPower(0); dds.start(); radio.afsk.start(&dds); delay(100); diff --git a/examples/FMBeacon/FMBeacon.ino b/examples/FMBeacon/FMBeacon.ino index 3035ce0..78679b3 100644 --- a/examples/FMBeacon/FMBeacon.ino +++ b/examples/FMBeacon/FMBeacon.ino @@ -45,7 +45,7 @@ void setup() { // Tell the HamShield to start up radio.initialize(); - radio.setRfPower(8); + radio.setRfPower(0); // Configure the HamShield to transmit and recieve on 446.000MHz radio.frequency(145570); diff --git a/examples/JustTransmit/JustTransmit.ino b/examples/JustTransmit/JustTransmit.ino index 49b04d7..c1dcce5 100644 --- a/examples/JustTransmit/JustTransmit.ino +++ b/examples/JustTransmit/JustTransmit.ino @@ -29,7 +29,7 @@ void setup() { Serial.println(result,DEC); Serial.println("Setting radio to its defaults.."); radio.initialize(); - radio.setRfPower(15); + radio.setRfPower(0); radio.setChanMode(3); } diff --git a/examples/SerialTransceiver/SerialTransceiver.ino b/examples/SerialTransceiver/SerialTransceiver.ino index e55d92a..146c861 100644 --- a/examples/SerialTransceiver/SerialTransceiver.ino +++ b/examples/SerialTransceiver/SerialTransceiver.ino @@ -97,7 +97,7 @@ void setup() { radio.setVolume2(0xF); radio.setModeReceive(); radio.setTxSourceMic(); - radio.setRfPower(9); + radio.setRfPower(0); radio.setSQLoThresh(80); radio.setSQOn(); }