update examples
This commit is contained in:
parent
a9f3380f85
commit
176814bc98
|
@ -50,6 +50,7 @@ void setup() {
|
|||
radio.initialize();
|
||||
radio.frequency(144390);
|
||||
radio.setRfPower(0);
|
||||
radio.bypassPreDeEmph(); // needed for digital modes
|
||||
dds.start();
|
||||
afsk.start(&dds);
|
||||
delay(100);
|
||||
|
|
|
@ -8,8 +8,11 @@
|
|||
* a message under 254 characters into the bar at the top of
|
||||
* the monitor. Click the "Send" button. Check for output on
|
||||
* AFSK receiver.
|
||||
|
||||
* NOTE: add message receive code
|
||||
*
|
||||
* To send a message: connect to the Arduino over a Serial link.
|
||||
* Send the following over the serial link:
|
||||
* `from,to,:message
|
||||
* example: * `KG7OGM,KG7OGM,:Hi there
|
||||
*/
|
||||
|
||||
|
||||
|
@ -55,6 +58,7 @@ void setup() {
|
|||
radio.setSQHiThresh(-100);
|
||||
radio.setSQLoThresh(-100);
|
||||
radio.setSQOn();
|
||||
radio.bypassPreDeEmph();
|
||||
dds.start();
|
||||
afsk.start(&dds);
|
||||
delay(100);
|
||||
|
|
|
@ -54,6 +54,7 @@ void setup() {
|
|||
Serial.print(F(" / "));
|
||||
Serial.println(radio.getSQLoThresh());
|
||||
radio.setModeReceive();
|
||||
radio.bypassPreDeEmph(); // needed for digital modes
|
||||
Serial.println(F("DDS Start"));
|
||||
delay(100);
|
||||
dds.start();
|
||||
|
|
|
@ -139,11 +139,13 @@ void loop() {
|
|||
|
||||
if (Serial.available()) {
|
||||
code = char2code(Serial.read());
|
||||
if (code == 255) code = 0xE; // throw a * in there so we don't break things with an invalid code
|
||||
radio.setDTMFCode(code); // set first
|
||||
} else {
|
||||
dtmf_to_tx = false;
|
||||
}
|
||||
}
|
||||
delay(20); // make sure the last code is done
|
||||
// done with tone
|
||||
radio.setModeReceive();
|
||||
radio.setTxSourceMic();
|
||||
|
|
|
@ -56,6 +56,7 @@ void setup() {
|
|||
radio.setSQLoThresh(-100);
|
||||
radio.setSQOn();
|
||||
radio.frequency(144390);
|
||||
radio.bypassPreDeEmph();
|
||||
|
||||
dds.start();
|
||||
afsk.start(&dds);
|
||||
|
|
|
@ -44,6 +44,7 @@ void setup() {
|
|||
Serial.println(result);
|
||||
radio.initialize();
|
||||
radio.frequency(446000);
|
||||
radio.bypassPreDeEmph();
|
||||
radio.setModeReceive();
|
||||
}
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ void setup() {
|
|||
radio.initialize();
|
||||
radio.setRfPower(0);
|
||||
radio.frequency(145500);
|
||||
radio.bypassPreDeEmph();
|
||||
// put your setup code here, to run once:
|
||||
//dds.setReferenceClock(34965/4);
|
||||
dds.start();
|
||||
|
|
Loading…
Reference in New Issue