rever KISS example
This commit is contained in:
parent
24082d5a11
commit
c813bac7b8
|
@ -22,13 +22,13 @@
|
||||||
#include <HamShield.h>
|
#include <HamShield.h>
|
||||||
#include <KISS.h>
|
#include <KISS.h>
|
||||||
#include <DDS.h>
|
#include <DDS.h>
|
||||||
#include <AX25.h>
|
#include <packet.h>
|
||||||
#include <avr/wdt.h>
|
#include <avr/wdt.h>
|
||||||
|
|
||||||
HamShield radio;
|
HamShield radio;
|
||||||
DDS dds;
|
DDS dds;
|
||||||
AX25 ax25;
|
AFSK afsk;
|
||||||
KISS kiss(&Serial, &radio, &dds, &ax25);
|
KISS kiss(&Serial, &radio, &dds, &afsk);
|
||||||
|
|
||||||
#define PWM_PIN 3
|
#define PWM_PIN 3
|
||||||
#define RESET_PIN A3
|
#define RESET_PIN A3
|
||||||
|
@ -58,7 +58,7 @@ void setup() {
|
||||||
radio.frequency(144390);
|
radio.frequency(144390);
|
||||||
|
|
||||||
dds.start();
|
dds.start();
|
||||||
ax25.start(&dds);
|
afsk.start(&dds);
|
||||||
delay(100);
|
delay(100);
|
||||||
radio.setModeReceive();
|
radio.setModeReceive();
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ ISR(ADC_vect) {
|
||||||
TIFR1 = _BV(ICF1); // Clear the timer flag
|
TIFR1 = _BV(ICF1); // Clear the timer flag
|
||||||
dds.clockTick();
|
dds.clockTick();
|
||||||
if(++tcnt == 1) {
|
if(++tcnt == 1) {
|
||||||
ax25.timer();
|
afsk.timer();
|
||||||
tcnt = 0;
|
tcnt = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue