I am analog guy and this programming stuff is over my head. I am trying to verify this program that I didn't create, just use. I did download the Zip libraries that where in the #include statements from the links that where mentioned in the comments section of the program. I don't even know where to start to solve these. Thanks in advance from this analog guy.
This is the errors that I get when I run the verify;
In file included from /Users/montemeredith/Documents/Arduino/libraries/Newliquidcrystal_1.3.5/LiquidCrystal_I2C.h:35:0,
from /Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino:51:
/Users/montemeredith/Documents/Arduino/libraries/Newliquidcrystal_1.3.5/LCD.h:187:7: error: redefinition of 'class LCD'
class LCD : public Print
^
In file included from /Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino:50:0:
/Users/montemeredith/Documents/Arduino/libraries/LCD/LCD.h:48:7: error: previous definition of 'class LCD'
class LCD : public LiquidCrystal {
^
/Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino: In function 'void transientLoadToggle()':
/Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino:1342:42: warning: switch condition has type bool [-Wswitch-bool]
switch (transient_mode_status){
^
/Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino:1381:42: warning: switch condition has type bool [-Wswitch-bool]
switch (transient_mode_status){
^
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: /Users/montemeredith/Documents/Arduino/libraries/Newliquidcrystal_1.3.5
Not used: /Users/montemeredith/Documents/Arduino/libraries/NewliquidCrystal_1.0
Not used: /Users/montemeredith/Documents/Arduino/libraries/NewliquidCrystal_1.0
Not used: /Users/montemeredith/Documents/Arduino/libraries/NewliquidCrystal_1.0
Not used: /Users/montemeredith/Documents/Arduino/libraries/NewliquidCrystal_1.0
Multiple libraries were found for "LCD.h"
Used: /Users/montemeredith/Documents/Arduino/libraries/LCD
Not used: /Users/montemeredith/Documents/Arduino/libraries/Newliquidcrystal_1.3.5
Not used: /Users/montemeredith/Documents/Arduino/libraries/NewliquidCrystal_1.0
exit status 1
Error compiling for board Arduino Nano.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Sorry, but what do I post? The whole program? In the link that you sent is confusing, it states"Post your complete sketch (program code)" then it states a few lines down it states,"With coding problems, if possible post a "minimal" sketch that demonstrates the problem - not hundreds of lines of code." so which one is it?
If you want us to look at the errors that are created by all of the code then you need to post all of the code (I didn't really need to say that, surely?).
For information "coding problem" means if there are no compile errors but the code isn't doing what you expected it would. Until you've got it compiled and uploaded you can't get that far.
The idea of posting a minimal sketch that demonstrates the problem is that it allows the problem to be isolated rather than having to wade through acres of code, most of which will be irrelevant. However, the sketch needs to be complete and not just a snippet of the larger one.
UKHeliBob:
The idea of posting a minimal sketch that demonstrates the problem is that it allows the problem to be isolated rather than having to wade through acres of code, most of which will be irrelevant. However, the sketch needs to be complete and not just a snippet of the larger one.
As it happens you posted neither
I guess I don't understand what you are telling me, How can a posting of a minimal sketch be complete and not a snippet of the larger one?
Again what part of the code do you want me to post?
You ideally provide all information for answering the question. This usually means full details to
recreate the exact same problem (not a different one). This usually means all the code, with
details of which versions of any libraries. If a problem cannot be re-created, it cannot be debugged
without using guesswork. Sometimes there is specialized hardware involved too, so the code can't
be run meaningfully, but here we have compiler errors, so all that's needed is the full sources to
compile.
But its easy to see from the messages that you have more than one library called "LiquidCrystal_I2C.h",
that is the first thing to fix.
Often a one error like this triggers a whole slew of other errors, there is an art to determining which
is the causal error, but I strongly suspect its having multiple copies of the same library.
Generally errors of the sort "there are multiple xxx's" or "cannot find yyy" need to be addressed
first as the compiler cannot proceed meaningfully.
Again what part of the code do you want me to post?
I don't want you to post a part of it. The suggestion is that you either post the complete program or you post a smaller but equally complete program that illustrates the problem.
An example. Suppose that in a function in your program you get an error saying that a variable is not declared in the scope where it is used. What good would it be to post just the function ? So you could post the complete program or a smaller but complete one illustrating how the function is called and how the variables used by it are declared
UKHeliBob:
I don't want you to post a part of it. The suggestion is that you either post the complete program or you post a smaller but equally complete program that illustrates the problem.
An example. Suppose that in a function in your program you get an error saying that a variable is not declared in the scope where it is used. What good would it be to post just the function ? So you could post the complete program or a smaller but complete one illustrating how the function is called and how the variables used by it are declared
I tried to post the code it will not allow me to do that. The problem is I don't understand the error codes or what they are telling me or where to even start to know where the problem is.
I tried to post the code it will not allow me to do that
Uh, how do we help you with that? That’s zero information.
The problem is I don't understand the error codes or what they are telling me or where to even start to know where the problem is.
Got that. Been there. But, until you can figure out some way of posting your code, and there at least two direct ways supported by the forum software, you’re pretty much stuck right were you are. You can insert files inline with [code][/code] tags (available by clicking the </> icon) or attaching the files using the “Attachments and other options” link that is under the text box you type your message into. Inline code is much preferred if it will fit since mobile viewers cannot open attached files.
As I tried to explain above in post# 8, it's telling me that there is too many characters ( over 9000) so it won't let me post the code. How do you do the "insert files inline with `` tags". Where are the
</> icons located?
I think I got it by doing the attachment, the code brackets/tags don't work;
The message has the following error or errors that must be corrected before continuing:
The message exceeds the maximum allowed length (9000 characters).
frugalguido:
Ok I'll try that. I did notice that there are two displays included on line 50 and 51. Should there be only one?
I'm guessing that LCD.h is not required but the code compiled at this end with it present. Leave it for now and see what happens with the library cleanup. If you change more than one thing at a time you can confuse the debug process.
Ok, I did delete the NewliquidCrystal_1.0 and now it's getting less errors, but I get this;
Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino: In function 'void transientLoadToggle()':
/Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino:1342:42: warning: switch condition has type bool [-Wswitch-bool]
switch (transient_mode_status){
^
/Users/montemeredith/Documents/Arduino/electronic_load_modified/electronic_load_modified.ino:1381:42: warning: switch condition has type bool [-Wswitch-bool]
switch (transient_mode_status){