Pooyan

Members
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Pooyan

  • Rank
    Newbie
  1. Papilio DUO Gameduino sketches not compiling

    Although putting the 'new' Gameduino library in, this results in graphics not being rendered correctly. (black sprites, characters instead of graphics).
  2. Papilio DUO Gameduino sketches not compiling

    Hi, I did some more testing, and when I downloaded the newest version of the Gameduino library and set the board type correctly to 'AVR - No USB', I did get the source to compile. Could it be that an old version of the Gameduino library has been included with Designlab 1.0.8 ? Kind regards, Paul
  3. Hi, I'm new here so I hope I'm not breaking any rules by just writing a post to ask a beginner question. Wat I'm trying to do is build the Gameduino examples delivered with Designerstudio 1.0.8 (I tried 1.0.7 and 1.0.5 too), the FPGA circuit runs fine, but the C code won't compile. The errors I get are pasted below : I'm running Designer lab on Mint linux 18.2 Kind regards, Paul ###################################################################################################################33 Arduino: 1.0.8 (Linux), Board: "Papilio DUO - AVR - No USB - ISP" In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:17:0: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:50:39: error: 'prog_uchar' has not been declared static void copy(unsigned int addr, prog_uchar *src, int count); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:61:25: error: 'prog_uchar' has not been declared static void microcode(prog_uchar *src, int count); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:62:45: error: 'prog_uchar' has not been declared static void uncompress(unsigned int addr, prog_uchar *src); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:129:47: error: 'prog_uchar' has not been declared void GDClass::copy(unsigned int addr, PROGMEM prog_uchar *src, int count) ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:33: error: variable or field 'microcode' declared void void GDClass::microcode(PROGMEM prog_uchar *src, int count) ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0, from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:25: error: expected primary-expression before '__attribute__' void GDClass::microcode(PROGMEM prog_uchar *src, int count) ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:50: error: expected primary-expression before 'int' void GDClass::microcode(PROGMEM prog_uchar *src, int count) ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:242:0: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/font8x8.h:1:16: error: 'prog_uchar' does not name a type static PROGMEM prog_uchar font8x8[] = { ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0, from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In static member function 'static void GDClass::ascii()': /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:258:28: error: 'font8x8' was not declared in this scope byte b = pgm_read_byte(font8x8 + i); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: At global scope: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:346:14: error: 'prog_uchar' has not been declared void begin(prog_uchar *s) { ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:368:3: error: 'prog_uchar' does not name a type prog_uchar *src; ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In member function 'void GDflashbits::begin(int*)': /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:347:5: error: 'src' was not declared in this scope src = s; ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0, from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In member function 'byte GDflashbits::get1()': /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:351:34: error: 'src' was not declared in this scope byte r = (pgm_read_byte_near(src) & mask) != 0; ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:355:7: error: 'src' was not declared in this scope src++; ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: At global scope: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:374:45: error: 'prog_uchar' has not been declared void GDClass::uncompress(unsigned int addr, prog_uchar *src) ^ Error compiling. This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.