Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues uploading arduino code #16

Closed
Cont3mplation opened this issue Jul 6, 2018 · 8 comments
Closed

Issues uploading arduino code #16

Cont3mplation opened this issue Jul 6, 2018 · 8 comments

Comments

@Cont3mplation
Copy link

Hi all, just started with musical floppy drive projects, and while following the moppy 2.0 wiki startup guide I downloaded the arduino zip and tried to upload the iso, only to get an undefined loop error, and this error seemingly is only solved by adding a void loop(){} and void setup(){} to the code. Is this necessary or is it something else that I'm doing wrong that needs to be fixed? Thanks in advance

@Sammy1Am
Copy link
Owner

Sammy1Am commented Jul 6, 2018

Did you unzip the Moppy folder from the zip file and open the .ino from the unzipped folder? The setup() and loop() functions exist in the MoppyCore.cpp file which should be included by the Arduino IDE when compiling.

Another thing worth checking: are you using the latest version of the Arduino IDE?

@Cont3mplation
Copy link
Author

Oh, the ino I got from the unzipped folders was just comments, am I just being dumb and looking in the wrong folder?

@Cont3mplation
Copy link
Author

Oh I am just being dumb, found it thanks

@Cont3mplation
Copy link
Author

Oh okay perhaps not, so I opened the file and got the moppy.ino, and the opened moppyconfig.h in the ide, but neither have the loop or setup. I assume I'm just looking in the wrong place now

@Sammy1Am
Copy link
Owner

Sammy1Am commented Jul 6, 2018

Alright, just confirmed it works in Arduino IDE 1.8.5 on a fresh computer. Steps should be:

  1. Download MoppyArduino-2.0.1.zip
  2. Extract the contents of the zip file (the results should be a folder called "Moppy")
  3. Open Moppy.ino from inside the unzipped folder.

The IDE should show three tabs: "Moppy", "MoppyConfig.h", and "MoppyCore.cpp". You may want to open a new sketch in the IDE and make sure the existing one is closed and then try again (maybe the IDE is confused because you've opened two sketches called Moppy?)

@Cont3mplation
Copy link
Author

Ah okay, mine didn't open the c++ file, that might be part of the issue will check :D Thanks for taking the time to help btw man, much appreciated!

@Sammy1Am
Copy link
Owner

I briefly saw you were having issues launching the app, but the comment's gone. I take it it's working okay?

@Cont3mplation
Copy link
Author

Yes got it working, realised I didn't have the newest java installed on that particular pc so after installing that it ran great, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants