Notifications
Clear all

Arduino Coding Problem

22 Posts
5 Users
1 Likes
6,678 Views
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@photo-bud

A piece of advice that I give to anyone seeking help with code that does not compile is this:

In the Arduino Preferences, make sure that "Show verbose output during 'compilation'"' box is checked. If the sketch has errors a button marked "Copy error messages" appear, click this button and open a new text file and paste the clipboard contents. Then post the text file with your forum message. 

Not all problems are on the line highlighted in the sketch window, most occur prior to the compiler reaching the highlighted line of code.


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@photo-bud

I took a look at the github source of this sketch and if I were you I would proceed as follows:

  1. Delete the .ino file.
  2. Download the original sketch again and try to compile it again.
  3. If you get the same errors again, then this is a developers issue and no one on this forum can help you.
  4. Raise an issue in the "issues" section of the github page, isolate the errors in an errors.txt file, as described above, and send this file to the developer with the issue.

   
ReplyQuote
Photo Bud
(@photo-bud)
Member
Joined: 5 years ago
Posts: 89
Topic starter  

Sorry I've been away. One of our grandchildren is spending the weekend with us after arriving with his mom and 3 siblings on Friday. Been busy with him.

I have, indeed, been doing what was suggested and had reloaded the sketch in several different ways and attempted to find out myself how to fix this. Just a few minutes ago, I checked out "Liquid Menu" and found that there was a correction just a month ago ( https://github.com/VaSe7u/LiquidMenu/commit/6831dcc9b471e00ee46f75703c8398f67a23d6c9 ).

"Fixed incorrect change screen method

`bool LiquidMenu::change_screen(LiquidScreen &ls)` changed to

`bool LiquidMenu::change_screen(LiquidScreen *ls)`"

This is precisely what is failing,

"no matching function for call to 'LiquidMenu::change_screen(LiquidScreen&)'"

Resolution is still unknown. One possibility is to use earlier version of "LiquidMenu", another is to contact owner and see what needs to be changed in "Fast_Clock", or ???.

Photo Bud (aka John)
The Old Curmudgeon!


   
ReplyQuote
(@zeferby)
Member
Joined: 5 years ago
Posts: 355
 

@photo-bud

Just pass the address of your screen variables and you should be ok.

See my post here : https://forum.dronebotworkshop.com/help-wanted/arduino-coding-problem/#post-7636

 

Eric


   
ReplyQuote
Photo Bud
(@photo-bud)
Member
Joined: 5 years ago
Posts: 89
Topic starter  

@zeferby - My sincere apology! I missed your post where you explained the problem and solution and ended up replying to a subsequent one. Thank you so much for taking the time and effort to research this. After the grandson is taken home and we stop to visit other family in his hometown, I will definitely get this taken care of!

Thank you, thank you, thank you!

Photo Bud (aka John)
The Old Curmudgeon!


   
ReplyQuote
Photo Bud
(@photo-bud)
Member
Joined: 5 years ago
Posts: 89
Topic starter  

@zeferby - Okay, I lied! Couldn't wait until this evening. Took out time from the grandkid to try this out. Compiles like a charm! Now I have a basis for the actual work I'll attempt and I learned a lot!

Thanks again!

Photo Bud (aka John)
The Old Curmudgeon!


   
ReplyQuote
(@zeferby)
Member
Joined: 5 years ago
Posts: 355
 
Posted by: @photo-bud

After the grandson is taken home

I have the culprit's name ? 

Eric


   
ReplyQuote
Page 2 / 2