Compiling with Project ABE [Solved]

I keep on getting issues building games or even simple demos with Project ABE.

example: the beepdemo inside arduboy2 lib gives me BeepPin1 does not name a type

or even the following tutorial code gets me even a Javascript bug (Cannot set property title of undefined):

#include <Arduboy.h>
Arduboy arduboy;

void setup() {
  // put your setup code here, to run once:
  arduboy.begin();
  arduboy.clear();
  arduboy.print("Holmes is cool!");
  arduboy.display();
}

void loop() {
  // put your main code here, to run repeatedly:

}

and many games from the community seem to work from .hex but give errors when building from source in ProjectABE…

Is there a trick i’m missing here? :slightly_smiling_face:

thanks

Project can build from source if it’s only 1 ino file, but if the game uses multiple one it will not work. At least from my understanding.

One of the problem here is that you left your loop empty. The loop is where you need to put what you want happening. If it’s empty it won’t do much. So your

Should at least be in the main loop I guess.

1 Like

I can’t answer your problem because I don’t use ProjectABE for development,
but you should be using Arduboy2 instead of Arduboy.

#include <Arduboy2.h>

Arduboy2 arduboy;

void setup()
{
	// Put your setup code here, to run once:
	arduboy.begin();

	arduboy.clear();
	arduboy.print(F(“Holmes is cool!”));
	arduboy.display();
}

void loop()
{
	// Put your main code here, to run repeatedly:
}

Also to post code you can wrap it in either:

```cpp
```

(The ‘cpp’ is optional, but specifies C++ highlighting.)

Or

[code]
[/code]

Ok thanks for the quick reply. 1 file only in ABE, noted!
I ordered my arduboy yesterday and i was hoping to get a headstart using the emulator but it’s been a bit of a rough ride until now :slight_smile:

And sorry. I didnt know markdown was supported here. Ill do better in the future. :slight_smile:

Kr