/* Just Transmit */ #include #define PWM_PIN 3 #define RESET_PIN A3 #define SWITCH_PIN 2 HamShield radio; void setup() { // NOTE: if not using PWM out, it should be held low to avoid tx noise pinMode(PWM_PIN, OUTPUT); digitalWrite(PWM_PIN, LOW); // prep the switch pinMode(SWITCH_PIN, INPUT_PULLUP); // set up the reset control pin pinMode(RESET_PIN, OUTPUT); digitalWrite(RESET_PIN, HIGH); Serial.begin(9600); Serial.println("If the sketch freezes at radio status, there is something wrong with power or the shield"); Serial.print("Radio status: "); int result = radio.testConnection(); Serial.println(result,DEC); Serial.println("Setting radio to its defaults.."); radio.initialize(); radio.setRfPower(0); radio.setChanMode(3); } void loop() { radio.bypassPreDeEmph(); radio.frequency(144000); // radio.setTxSourceNone(); radio.setModeTransmit(); for(;;) { } }