prt459 / Arduino_si5351_VFO_Controller_Keyer

A controller for a multi-band homebrew SSB/CW transceiver, targeting Arduino Nano and si5351 PLL.
https://vk3hn.wordpress.com/
GNU General Public License v3.0
68 stars 22 forks source link

's_meter10x15' was not declared in this scope #6

Open RiccardoMontaguti opened 4 years ago

RiccardoMontaguti commented 4 years ago

Trying to compile after downloading all the required libraries (using Arduino UNO as target board) I get the following error: -> 's_meter10x15' was not declared in this scope

The s_meter_font.h file is in the same folder of the .ino program

prt459 commented 4 years ago

Hi Riccardo I will help you to get the install going. Please look at the wiki tab, on the bottom of the first page there is a link to a page on doing the install. You need to edit the header and include the font file. If you still have problems let me know.

https://github.com/prt459/Arduino_si5351_VFO_Controller_Keyer/wiki

RiccardoMontaguti commented 4 years ago

Thank you, by following the steps I was able to solve it! ( I hat also to rename the font file from s_meter_font.h to s-meter10x15.h ) and also I had to add the register to every set correction (si5351.set_correction(19100, SI5351_PLL_INPUT_XO); ) is it right to add to all the set_correction the same register line (SI5351_PLL_INPUT_XO) ?

CarlosLU8DOG commented 3 years ago

Hi Paul, I have the same response that Riccardo, 's_meter10x15' was not declared in this scope. I intended to follow your instructions but I cannot find the file SSD1306Ascii_fonts.h to edit it. Thanks in advance. Carlos LU8DOG

prt459 commented 3 years ago

Hi Carlos

I don't think you need to edit that file. Put the s_meter.h font into the fonts directors. Edit allfonts.h and #include the s_meter font.

It's been a while since I did this, see if this helps...

[image: image.png]

On Fri, 5 Feb 2021 at 08:58, CarlosLU8DOG notifications@github.com wrote:

Hi Paul, I have the same response that Riccardo, 's_meter10x15' was not declared in this scope. I intended to follow your instructions but I cannot find the file SSD1306Ascii_fonts.h to edit it. Thanks in advance. Carlos LU8DOG

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prt459/Arduino_si5351_VFO_Controller_Keyer/issues/6#issuecomment-773630433, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEHGCFMKCXUFO56JM43C63S5MKA5ANCNFSM4SVLF7AA .

CarlosLU8DOG commented 3 years ago

Thanks Paul, I ll try that.

CarlosLU8DOG commented 3 years ago

Ready! I removed the old set correction parameter , and it seems to be working. Now I ll suit all the options. Thanks you very much, Paul. Have a nice trekkings.

prt459 commented 3 years ago

😀

On Fri, 5 Feb 2021 at 09:51, CarlosLU8DOG notifications@github.com wrote:

Ready! I removed the old set correction parameter , and it seems to be working. Now I ll suit all the options. Thanks you very much, Paul. Have a nice trekkings.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prt459/Arduino_si5351_VFO_Controller_Keyer/issues/6#issuecomment-773655232, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEHGCGPVUXBXTX7VOEV2JLS5MQGLANCNFSM4SVLF7AA .

prt459 commented 1 year ago

Piotr SP9LVZ had this problem and solved it simply by copying and pasting the S_meter font header code into the main VFO_Controller script. As the file contains only structs (which provide information for the compiler) it should not add to the binary code size, so this seems like a simpler solution. I'm yet to try it, if you do, let me know.