tag:blogger.com,1999:blog-9005578200637099479.post8003792997159055694..comments2022-11-30T19:26:27.418-08:00Comments on AK2B: Codebender Arduino IDEAnonymoushttp://www.blogger.com/profile/09902683181015684293noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-9005578200637099479.post-16737138204370241192015-02-04T11:37:26.516-08:002015-02-04T11:37:26.516-08:00Good evening and thanks a lot Tom for all the usef...Good evening and thanks a lot Tom for all the useful explanation.<br />It does compile and work now.<br />You are great help and the Codebender system works nicely!<br />73,<br />Konstantinos, SV1ONWSV1ONWhttps://www.blogger.com/profile/16259756678465410496noreply@blogger.comtag:blogger.com,1999:blog-9005578200637099479.post-53226786989156779172015-02-04T06:31:09.586-08:002015-02-04T06:31:09.586-08:00The error is because the compiler cannot find the ...The error is because the compiler cannot find the Si5351 library. Make sure you have both the Rotary and Si5351 libraries installed as described above. The previous post covers the Arduino IDE.<br /><br />Si53512 si5351;<br />LiquidCrystal lcd(LCD_RS, LCD_E, LCD_D4, LCD_D5, LCD_D6, LCD_D7); <br />Rotary r = Rotary(ENCODER_A, ENCODER_B);<br />These 3 lines instantiate the objects (from their respective libraries) you are using and gives them a name. As you can see, some of the objects need parameters passed to them at the time of their creation.<br />Tom, ak2bAnonymoushttps://www.blogger.com/profile/09902683181015684293noreply@blogger.comtag:blogger.com,1999:blog-9005578200637099479.post-7858645672414749552015-02-04T06:24:20.660-08:002015-02-04T06:24:20.660-08:00The error message is because the compiler cannot f...The error message is because the compiler cannot find the Si5351 library. Read again this post above about installing libraries into the Codebender IDE. The previous post covers installing user libraries into the Arduino IDE.<br />These three lines:<br />LiquidCrystal lcd(LCD_RS, LCD_E, LCD_D4, LCD_D5, LCD_D6, LCD_D7); <br />Si5351 si5351;<br />Rotary r = Rotary(ENCODER_A, ENCODER_B);<br />...create objects from their respective libraries to be used throughout the program. LiquidCrystal and Rotary are passed parameters that are needed by the libraries. They are given the names LCD, si5351 and r.<br />Open Source Hardware group (the creator of the video above) have excellent tutorials for using Arduino.<br />73,<br />Tom, ak2bAnonymoushttps://www.blogger.com/profile/09902683181015684293noreply@blogger.comtag:blogger.com,1999:blog-9005578200637099479.post-48439725905006682882015-02-03T14:04:34.137-08:002015-02-03T14:04:34.137-08:00Thanks a lot Tom.
Now I run into another error mes...Thanks a lot Tom.<br />Now I run into another error message.<br /><br /> This report would have more information with<br /> "Show verbose output during compilation"<br /> enabled in File > Preferences.<br />Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"<br />LCD_VFO_Si5351-copy.ino:29: error: 'Si5351' does not name a type<br />LCD_VFO_Si5351-copy.ino: In function 'void setup()':<br />LCD_VFO_Si5351-copy.ino:155: error: 'si5351' was not declared in this scope<br />LCD_VFO_Si5351-copy.ino: In function 'void loop()':<br />LCD_VFO_Si5351-copy.ino:184: error: 'si5351' was not declared in this scope<br /><br />What I do not understand is the line in your program Si5351 si5351;<br />It seems to be the starting point of the new problem.<br />Thanks,<br />Konstantinos, SV1ONWSV1ONWhttps://www.blogger.com/profile/16259756678465410496noreply@blogger.comtag:blogger.com,1999:blog-9005578200637099479.post-22775971159117662012015-02-03T06:18:33.925-08:002015-02-03T06:18:33.925-08:00I also corrected the code in the codebender window...I also corrected the code in the codebender window.Anonymoushttps://www.blogger.com/profile/09902683181015684293noreply@blogger.comtag:blogger.com,1999:blog-9005578200637099479.post-71357120682511123492015-02-03T05:51:57.271-08:002015-02-03T05:51:57.271-08:00Hi Konstantinos,
My mistake. Try:
#include inst...Hi Konstantinos,<br />My mistake. Try:<br />#include instead of:<br />#include "Wire.h"<br />The quotes around an include assume a local library in the same folder as the program file instead of the Libraries folder.<br />Let me know.<br />Tom, ak2bAnonymoushttps://www.blogger.com/profile/09902683181015684293noreply@blogger.comtag:blogger.com,1999:blog-9005578200637099479.post-16814670488426831972015-02-03T03:02:00.565-08:002015-02-03T03:02:00.565-08:00Hello Tom,
I tried to run on my UnoR3 your sketch...Hello Tom,<br /><br />I tried to run on my UnoR3 your sketch for the Si5351A both with the codebender and directly from my computer.<br />In both cases I get compilation error. Here is the dump from my compilation.<br /><br /> This report would have more information with<br /> "Show verbose output during compilation"<br /> enabled in File > Preferences.<br />Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"<br />In file included from LCD_VFO_Si5351_IF_offset.ino:10:<br />C:\Users\tubester\Documents\Arduino\libraries\Si5351Arduino-master/si5351.h:32:18: error: Wire.h: No such file or directory<br />LCD_VFO_Si5351_IF_offset.ino: In function 'void setup()':<br />LCD_VFO_Si5351_IF_offset:153: error: 'Wire' was not declared in this scope<br /><br />Although I am programming PICs for a long time, I am relatively new to Arduino enviroment.<br />I would appreciate any hint for my problem.<br />I have also installed both NT7S and Rotary libraries on my PC.<br />Thanking you in advance,<br />73 de Konstantinos, SV1ONWSV1ONWhttps://www.blogger.com/profile/16259756678465410496noreply@blogger.com