From 13be6810f13cada2fc0b6dd9eacd533a4aa030fd Mon Sep 17 00:00:00 2001 From: Stephen Olesen Date: Thu, 2 Jul 2015 01:26:47 -0600 Subject: [PATCH] Modified to initialize and try to use the radio. --- examples/AFSK-Send/AFSK-Send.ino | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/AFSK-Send/AFSK-Send.ino b/examples/AFSK-Send/AFSK-Send.ino index 57916ea..7f7282a 100644 --- a/examples/AFSK-Send/AFSK-Send.ino +++ b/examples/AFSK-Send/AFSK-Send.ino @@ -14,9 +14,17 @@ void setup() { digitalWrite(2, LOW); digitalWrite(10, LOW); + Serial.println(F("Radio test connection")); + radio.testConnection(); + Serial.println(F("Initialize")); + radio.initialize(); + Serial.println(F("Frequency")); + radio.frequency(446000); + Serial.println(F("DDS Start")); dds.start(); + Serial.println(F("AFSK start")); radio.afsk.start(&dds); - Serial.println("Starting..."); + Serial.println(F("Starting...")); } void loop() { @@ -46,7 +54,7 @@ void loop() { bool ret = radio.afsk.putTXPacket(packet); if(radio.afsk.txReady()) if(radio.afsk.txStart()) { - Serial.println("PTT here."); + radio.setModeTransmit(); } // Wait 2 seconds before we send our beacon again. Serial.println("tick");