master
rodzic
079cff9d23
commit
da45e9a07c
|
@ -12,7 +12,7 @@
|
|||
|
||||
// Hardware Requirements
|
||||
// ---------------------
|
||||
// This firmware must be run on an Arduino Zero capable microcontroller
|
||||
// This firmware must be run on an Arduino AVR microcontroller
|
||||
//
|
||||
// Required Libraries
|
||||
// ------------------
|
||||
|
@ -96,7 +96,7 @@ void encode()
|
|||
// Now do the rest of the message
|
||||
for(i = 0; i < SYMBOL_COUNT; i++)
|
||||
{
|
||||
si5351.set_freq((freq * 100) + (tx_buffer[i] * TONE_SPACING), 0, SI5351_CLK0);
|
||||
si5351.set_freq((freq * 100) + (tx_buffer[i] * TONE_SPACING), SI5351_CLK0);
|
||||
proceed = false;
|
||||
while(!proceed);
|
||||
}
|
||||
|
@ -143,11 +143,10 @@ void setup()
|
|||
// Initialize the Si5351
|
||||
// Change the 2nd parameter in init if using a ref osc other
|
||||
// than 25 MHz
|
||||
si5351.init(SI5351_CRYSTAL_LOAD_8PF, 0);
|
||||
si5351.init(SI5351_CRYSTAL_LOAD_8PF, 0, CORRECTION);
|
||||
|
||||
// Set CLK0 output
|
||||
si5351.set_correction(CORRECTION);
|
||||
si5351.set_freq(freq * 100, 0, SI5351_CLK0);
|
||||
si5351.set_freq(freq * 100, SI5351_CLK0);
|
||||
si5351.drive_strength(SI5351_CLK0, SI5351_DRIVE_8MA); // Set for max power
|
||||
si5351.set_clock_pwr(SI5351_CLK0, 0); // Disable the clock initially
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue