master
rodzic
e22f1483d0
commit
079cff9d23
|
@ -51,7 +51,7 @@
|
|||
#include "Wire.h"
|
||||
|
||||
#define TONE_SPACING 146 // ~1.46 Hz
|
||||
#define SUBMODE_A 10672 // CTC value for WSPR
|
||||
#define WSPR_CTC 10672 // CTC value for WSPR
|
||||
#define SYMBOL_COUNT WSPR_SYMBOL_COUNT
|
||||
#define CORRECTION 0 // Change this for your ref osc
|
||||
|
||||
|
@ -162,7 +162,7 @@ void setup()
|
|||
(1 << WGM12); // turn on CTC
|
||||
// which gives, 64 us ticks
|
||||
TIMSK1 = (1 << OCIE1A); // Enable timer compare interrupt.
|
||||
OCR1A = SUBMODE_A; // Set up interrupt trigger count;
|
||||
OCR1A = WSPR_CTC; // Set up interrupt trigger count;
|
||||
interrupts(); // Re-enable interrupts.
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue