Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Arduino IDE Problem

Comments

  • Registered Users, Registered Users 2 Posts: 2,325 ✭✭✭Chet T16


    The code is calling two functions that have not been declared, backup() and restore() within the arduino code. Is the code missing a #include or something?


  • Registered Users, Registered Users 2 Posts: 2,325 ✭✭✭Chet T16


    Oh I see it now, you need to add the Backup.ino file to your sketch too


  • Registered Users, Registered Users 2 Posts: 198 ✭✭Recoil12


    Thanks Chet, how might I do that then? Is it simply copy/paste or is there more to be done?


  • Registered Users, Registered Users 2 Posts: 2,325 ✭✭✭Chet T16


    Check out the bit on using multiple files here http://arduino.cc/en/Hacking/BuildProcess

    I haven't access to the ide to double check but once you have both ino files in tabs in the one window it should compile


  • Registered Users, Registered Users 2 Posts: 198 ✭✭Recoil12


    I got as far as including the 3 required files in the one arduino sketch using tabs.I'm still getting errors compiling(although different than before) which I will post as soon as possible.Is there any chance you could run it in the arduino IDE and see what you get?

    Thanks again.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,325 ✭✭✭Chet T16


    I just checked and it compiles for me on 1.0.2 (shouldn't make a difference with 1.0.5)

    I have the PSG_Arduino_Code folder in my normal sketch folder, the 3 files are in this folder - when you open PSG_Arduino_Code.ino it will load the other two into tabs automatically


  • Registered Users, Registered Users 2 Posts: 198 ✭✭Recoil12


    Here's how I am doing it(please tell me where I'm going wrong).
    1.Opening PSG_Arduino_Code directly from Winrar folder.
    2.Add tab>backup(1)>open backup in seperate window(2) and copy paste into tab(1)
    3.Add tab>EEPROMAnything>go to here to copy code(http://www.instructables.com/id/Nerf-Vulcan-Sentry-Gun/?ALLSTEPS)>paste into EEPROMAnything tab
    4.Compile

    Results in error(included image).


  • Registered Users, Registered Users 2 Posts: 2,325 ✭✭✭Chet T16


    This is the folder in my sketch folder (i.e. the one listed as sketchbook location under File > Preferences)

    3b1bf1d335425cb5a7713caca3aed3c4.png

    Double clicking PSG_Arduino_Code.ino opens all 3 files

    afbf0a78b5d364f5ecef7d904c9b5df7.png


  • Registered Users, Registered Users 2 Posts: 198 ✭✭Recoil12


    Thanks a million Chet that did it :D.


Advertisement