For problems with Gamebuino itself, NOT your project
by 2ant » Sun Jun 26, 2016 1:01 pm
Hi, i compile the hello example and it compile without errors, i then have this :
I take one of the .hex file and rename it in capitals HELLO.HEX
If i load it into Simbuino it crash Simbuino (the games from the "Gamebuino-Games-Compilation-master" folder worked fine").
If i put it on the microSd and in the Gamebuino it appear in the bottom of the menu but when i choose "play" it display the "loading game don't turn off" screen, after a few seconds the backlight shut down and after a few more seconds the screen goes blank. The rx,tx,power led stay on like with every working game but nothing happens.
Can anyone help me ?
Last edited by
2ant on Mon Jun 27, 2016 3:44 am, edited 1 time in total.
-
2ant
-
- Posts: 3
- Joined: Sun Jun 26, 2016 12:33 pm
by clement » Sun Jun 26, 2016 5:36 pm
Hello,
Can you share your code?
in my mind you are a fatal error in your sketch. (infinit loop, null pointer ,....)
-
clement
-
- Posts: 161
- Joined: Sat Oct 25, 2014 8:06 am
by 2ant » Mon Jun 27, 2016 3:07 am
- Code: Select all
//imports the SPI library (needed to communicate with Gamebuino's screen)
#include <SPI.h>
//imports the Gamebuino library
#include <Gamebuino.h>
//creates a Gamebuino object named gb
Gamebuino gb;
// the setup routine runs once when Gamebuino starts up
void setup(){
// initialize the Gamebuino object
gb.begin();
//display the main menu:
gb.titleScreen(F("My first game"));
gb.popup(F("Let's go!"), 100);
}
// the loop routine runs over and over again forever
void loop(){
//updates the gamebuino (the display, the sound, the auto backlight... everything)
//returns true when it's time to render a new frame (20 times/second)
if(gb.update()){
//prints Hello World! on the screen
gb.display.println(F("Hello World!"));
//declare a variable named count of type integer :
int count;
//get the number of frames rendered and assign it to the "count" variable
count = gb.frameCount;
//prints the variable "count"
gb.display.println(count);
}
}
I took the first example after installing the library and followed the "Make your own .HEX" method from the getting started page.
-
2ant
-
- Posts: 3
- Joined: Sun Jun 26, 2016 12:33 pm
by 2ant » Mon Jun 27, 2016 3:44 am
I fixed my own mess, i did a fresh install of the arduino ide and the gamebuino lib on another computer and the .HEX worked on my Gamebuino. When i installed the gamebuino lib the first time i overwrote something and didn't pay enough attention.
Solution : keep your arduino lib folder updated and organized.
-
2ant
-
- Posts: 3
- Joined: Sun Jun 26, 2016 12:33 pm
Return to Installation & Troubleshooting
Who is online
Users browsing this forum: No registered users and 2 guests