Author Topic: Gameduino and DigiX compile errors  (Read 3064 times)

Lexicon

  • Newbie
  • *
  • Posts: 1
Gameduino and DigiX compile errors
« on: March 29, 2014, 01:53:55 pm »
Hi

I am sorry to contact you but I have had problems getting on the gameduino forum. I hope you can help me I am a novice embedded programmer and I am using a DigiX board with the Gameduino but having problems compiling the example hello word sketch. I have installed the Arduino IDE using the DigiX installer and have installed the Gameduino library using Sketch - library - add library The Gameduino library has been installed in the Documents - Arduino - libraries - Gameduino2 directory the DigiX files are in the Program Files (x86) - Arduino - hardware - digistump - sam - libraries - the libraries are displayed in the Sketch - import library - when I compile the program I get the following errors:-

#include <Wire.h>
#include <Extensive_EEPROM.h>
#include <SPI.h>
#include <GD2.h>

void setup()
{
  GD.begin();
 
}

void loop()
{
  GD.ClearColorRGB(0x103000);
  GD.Clear();
  GD.cmd_text(240, 136, 31, OPT_CENTER, "Hello world");
  GD.swap();
}

 In file included from helloworld.ino:7:
C:\Users\Brian Mayne\Documents\Arduino\libraries\Gameduino2/GD2.h: In member function 'void sdcard::begin(byte)':
C:\Users\Brian Mayne\Documents\Arduino\libraries\Gameduino2/GD2.h:135: error: 'SPI_CLOCK_DIV64' was not declared in this scope
C:\Users\Brian Mayne\Documents\Arduino\libraries\Gameduino2/GD2.h:231: error: 'SPI_CLOCK_DIV2' was not declared in this scope
C:\Users\Brian Mayne\Documents\Arduino\libraries\Gameduino2/GD2.h:232: error: 'SPSR' was not declared in this scope
C:\Users\Brian Mayne\Documents\Arduino\libraries\Gameduino2/GD2.h:232: error: 'SPI2X' was not declared in this scope

Can anyone help?





gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Gameduino and DigiX compile errors
« Reply #1 on: March 31, 2014, 12:30:25 am »
That sounds like some header files are missing.
First of all: Are there SAM-libraries available for that project.

From the homepage of gameduino:

Tiny microcontrollers like the Atmel AVR used in the Arduino are now much more powerful than the 8-bit computers from the 1980s. So why not use them to play video games?