[SOLVED]Need Help Please?


(Phil Graham) #1

I don’t understand how to add Arduboy 2 library and tones to make a game that needs Arduboy 2 and tones library for it load onto my Arduboy.

Can somebody explain how to do this please?

cheers!


(Scott) #2

Step 2 in the Quick Start Guide.


(Phil Graham) #3

As I’ve previously told you I’m not from this environment. I’ve no experience.

I can load games on via the sketch or via a loader, but just putting in a link I’m afraid doesn’t help me. You might understand it but I don’t.

I watched a video last night I wasn’t aware I needed a master file. There’s nothing in the guide about that.

I need it explaining how I add arduboy 2 and tones library to get games to that only work on Arduboy 2 library.

This might sound like a bit of a rant but it’s not. I’m just frustrated.


(Mike McRoberts) #4

Have you downloaded and installed the Arduino IDE?


(Phil Graham) #5

Yes I installed the Arduino IDE.

I go into libraries then select Arduboy 2 then, tones, then go to master, close the Arduino IDE,

Go into games open the folder select the ino file the Arduino ide opens and hit upload


(Mike McRoberts) #6

OK so go to the top of the Arduino IDE and click

Sketch

Then click

Include Library

then

Manage Libraries…

This will open the Library Manager.

In the search box at the top enter Arduboy. A whole load of libraries will become available.

Make sure you install:

Arduboy
Arduboy2
ArduboyTones
ArduboyPlaytune
ArdBitmap
ArdVoice
ATMlib

Once you have installed all of the above your IDE is now ready to upload any games and they will work with the Arduboy or Arduboy2 library.

Let me know if you have any further problems.

Mike


(Phil Graham) #7

I’m getting this error message.

Arduino: 1.8.1 (Windows 10), Board: “Arduino Leonardo”

libraries\ArduboyTones\ArduboyTones.cpp.o (symbol from plugin): In function `ArduboyTones::getNext()’:

(.text+0x0): multiple definition of `__vector_32’

sketch\audio.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "ArduboyTones.h"
Used: C:\Program Files (x86)\Arduino\libraries\ArduboyTones
Not used: C:\Users\philg\OneDrive\Documents\Arduino\libraries\Arduboy\libraries\ArduboyTones-master
Multiple libraries were found for "Arduboy2.h"
Used: C:\Program Files (x86)\Arduino\libraries\Arduboy2
Not used: C:\Users\philg\OneDrive\Documents\Arduino\libraries\Arduboy\libraries\Arduboy2-master
exit status 1
Error compiling for board Arduino Leonardo.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


(Mike McRoberts) #8

Remove the libraries you have put in your OneDrive. This is the worst place you can keep them:

C:\Users\philg\OneDrive\Documents\Arduino\libraries\


(Phil Graham) #9

I didn’t realise the Arduino folder went into OneDrive.

Thanks for pointing it out to me.

I’ve put into the Arduboy folder on c drive.


(Mike McRoberts) #10

OK so now try uploading a game again.


(Mike McRoberts) #11

Also you have chosen Arduino Leonardo as your board instead of Arduboy.


(Phil Graham) #12

yes I did

Arduino: 1.8.1 (Windows 10), Board: “Arduino Leonardo”

In file included from sketch\Arduboy.h:8:0,

             from C:\Users\philg\Desktop\Arduboy\Arduboy Games\BlockStacker\BlockStacker.ino:18:

audio.h:14: error: redefinition of ‘class ArduboyAudio’

class ArduboyAudio

   ^

In file included from C:\Users\philg\Desktop\Arduboy\Arduino\libraries\Arduboy2\libraries\Arduboy2\src/Arduboy2.h:25:0,

             from C:\Users\philg\Desktop\Arduboy\Arduboy Games\BlockStacker\BlockStacker.ino:4:

C:\Users\philg\Desktop\Arduboy\Arduino\libraries\Arduboy2\libraries\Arduboy2\src/ArduboyAudio.h:7:7: error: previous definition of ‘class ArduboyAudio’

class ArduboyAudio

   ^

Multiple libraries were found for "ArduboyTones.h"
Used: C:\Program Files (x86)\Arduino\libraries\ArduboyTones
Not used: C:\Users\philg\Desktop\Arduboy\Arduino\libraries\Arduboy2\libraries\ArduboyTones-master
Multiple libraries were found for "Arduboy2.h"
Used: C:\Users\philg\Desktop\Arduboy\Arduino\libraries\Arduboy2\libraries\Arduboy2
Not used: C:\Users\philg\Desktop\Arduboy\Arduino\libraries\Arduboy2\libraries\Arduboy2-master
Not used: C:\Program Files (x86)\Arduino\libraries\Arduboy2
exit status 1
redefinition of ‘class ArduboyAudio’

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


(Scott) #13

Phil,

Libraries should be installed using the Arduino Library Manager, the way Mike gave in the steps above.

You should not be trying to download and install any Arduboy libraries yourself. Please delete the
C:\Users\philg\Desktop\Arduboy\Arduino\libraries
folder and everything in it.

Next, in the IDE click on

File

Then click on

Preferences

then copy what’s in the Sketchbook location box and paste it here in a reply.


(Phil Graham) #14

I’m sorry I don’t understand.


(Scott) #15

Then don’t bother with the libraries or deleting anything for now.

Open the Arduino IDE.
In the menu at the top of the IDE window click on

File

Then click on

Preferences

A Preferences window will open. At the top of this window there will be a heading:

Sketchbook location:

Under the Sketchbook location heading will be an entry field with text giving the path to your sketchbook folder. Please tell me what’s in that field.


(Phil Graham) #16

C:\Users\philg\Desktop\Arduboy\Arduino\libraries\Arduboy2


(Scott) #17

Have you changed the Sketchbook location field?
I would expect it to be:

C:\Users\philg\Documents\Arduino


(Phil Graham) #18

C:\Users\philg\Documents\Arduino

This what I have edited it to.

Do you wish see the contents of the Arduino folder?


(Mike McRoberts) #19

Try to upload your game now.

In future ALWAYS use the Library manager to install new libraries. NEVER do it by hand.


(Scott) #20

OK, good.

Now use whatever it is in Windows (I’m a Linux person) that you use to open the Arduino folder in your Documents folder. Reply when you’ve done this.

In this Arduino folder there should be a libraries folder.

In this libraries folder you should see folders for all the Arudboy related libraries: Arduboy, Arduboy2, ArduboyTones, etc.

If not, follow Mike’s steps above to install all the libraries. Their folders should then appear in this libraries folder.