I have used Inventors kit in order to make project with LED lamps. I wish that lamps are working when I press the button on Makerbuino. So, I connected Makerbuino with laptop and I copied program from Makerbuino web site and tried to put it on Makerbuino (btw, experimental pad with all elements is already set.) but there is an error:
exit status 1
redefinition of “void loop ()”
Seems you have two void functions declared. You should have a void setup() and a void loop() function.
Was the first loop function supposed to be setup()?
If you’ve directly copied from the website, it will paste unicode text instead of ascii text. The compiler won’t work with unicode quotation marks (")
Try erasing the quotation marks and retype them in without using copy/paste.
The problem are these in bold:
gb.titleScreen(F( “ PCF8574(A) Pro Guide ” ));
OK, I did all this (I put this code in arduous and tried again to switch to MAKERbuino but the same mistake happened). @albertgajsak@Craig_Page told me if this code will not work for you to update my MAKERbuino, so how do I do this?
It’s nothing to do with the MAKERbuino, it’s the compiler (Arduino) that may not be doing what it’s supposed to do.
I’m at a loss now, but I’m gonna have a go at replicating what you’re doing here and see if I can get the same result.
EDIT:
I’ve compiled it using Arduino and no errors were reported. There may be something going wrong within Arduino, check if you’ve got the correct libraries downloaded using the getting started guide:
Make sure you go to Sketch -> Include Library -> Manage Libraries. Then make sure you’ve got the correct Gamebuino library INSTALLED as shown below. Don’t use Classic or META:
In which case, have classic installed if you’re using the MAKERbuino. META if you’re using the gamebuino META device. Remove META if you don’t have a gamebuino META.
I’m just thinking that it could be conflicting with each other. Unless someone can correct me if I’m wrong… I’m just guessing from this point.
@Jan_Belak,
I believe that you have two tabs opened in your Arduino project and that is preventing the code from compiling correctly.
Please, create a completely new Arduino project, delete everything from the newly created project and copy and paste the code in the Arduino window.
You mustn’t have two tabs opened!
Ok make sure your MAKERbuino is plugged in to your computer correctly. Check that your cables are plugged in the correct pins on both the programmer and the MAKERbuino. Check with the online guides to check if they’re in the correct order.
@Jan_Belak, you have bad soldering joints and solder bridges on the connector and you need to remove those before trying to upload a program to your MAKERbuino.