From 436cd843a643ce80951bc2c9b1add82fab7575a0 Mon Sep 17 00:00:00 2001 From: Jason Milldrum Date: Thu, 1 Dec 2016 10:14:56 -0800 Subject: [PATCH] Update example sketch to be compliant with Si5351Arduino v2.0.0 --- README.md | 10 +++++++--- examples/Si5351JTDemo/Si5351JTDemo.ino | 5 ++--- library.properties | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c3ab8e0..ec986cd 100644 --- a/README.md +++ b/README.md @@ -229,17 +229,21 @@ Also, a big thank you to Murray Greenman, ZL1BPU for working allowing me to pick Changelog --------- +* v1.1.1 + + * Update example sketch for Si5351Arduino v2.0.0 + * v1.1.0 - Added FSQ + * Added FSQ. * v1.0.1 - Fixed a bug in jt65_interleave that was causing a buffer overrun. + * Fixed a bug in jt65_interleave that was causing a buffer overrun. * v1.0.0 - Initial Release + * Initial Release. License ------- diff --git a/examples/Si5351JTDemo/Si5351JTDemo.ino b/examples/Si5351JTDemo/Si5351JTDemo.ino index a636195..ac36f2c 100644 --- a/examples/Si5351JTDemo/Si5351JTDemo.ino +++ b/examples/Si5351JTDemo/Si5351JTDemo.ino @@ -149,7 +149,7 @@ void encode() 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); } @@ -225,10 +225,9 @@ 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, 0); // Set CLK0 output - si5351.set_correction(0); si5351.drive_strength(SI5351_CLK0, SI5351_DRIVE_8MA); // Set for max power if desired si5351.output_enable(SI5351_CLK0, 0); // Disable the clock initially diff --git a/library.properties b/library.properties index 18d669a..644492a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Etherkit JTEncode -version=1.1.0 +version=1.1.1 author=Jason Milldrum maintainer=Jason Milldrum sentence=Generate JT65, JT9, JT4, WSPR, and FSQ symbols on your Arduino.