Understanding the language, error messages, etc.
by Duhjoker » Wed Sep 14, 2016 6:03 am
In my work with trying adapt the gamebuino library to the new screen and ive come to a part where its errors are saying no matching call to function and something about expected arguments. could someone please look at the below and please explain whats going on ?
- Code: Select all
Arduino: 1.6.11 (Windows 7), TD: 1.30-beta3, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz optimize speed (overclock), US English"
WARNING: Category '' in library LCD_2000_7775 is not valid. Setting to 'Uncategorized'
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h: In constructor 'LCD_2000_7775::LCD_2000_7775()':
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:53:18: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX()'
LCD_2000_7775(){};
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:53:18: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:17:3: note: Adafruit_GFX::Adafruit_GFX(int16_t, int16_t)
Adafruit_GFX(int16_t w, int16_t h); // Constructor
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:17:3: note: candidate expects 2 arguments, 0 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: constexpr Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
class Adafruit_GFX : public Print {
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: candidate expects 1 argument, 0 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: constexpr Adafruit_GFX::Adafruit_GFX(Adafruit_GFX&&)
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: candidate expects 1 argument, 0 provided
ESMERELDA: In function 'void loop()':
ESMERELDA:104: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int, int, const byte [530])'
gb.display.drawBitmap(0,0,room_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:104:37: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:107: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [258])'
gb.display.drawBitmap(player_x,player_y,sever_front_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:107:58: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:116: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [8])'
gb.display.drawBitmap(player_x,player_y,sever_rear_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:116:57: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:130: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [258])'
gb.display.drawBitmap(player_x,player_y,sever_front_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:130:58: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:143: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [8])'
gb.display.drawBitmap(player_x,player_y,sever_right_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:143:58: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:155: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [8])'
gb.display.drawBitmap(player_x,player_y,sever_left_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:155:57: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:28,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
Multiple libraries were found for "gfxfont.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ssd1351
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
no matching function for call to 'LCD_2000_7775::drawBitmap(int, int, const byte [530])'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
-
![User avatar](./download/file.php?avatar=1814_1472792899.jpg)
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by rodot » Wed Sep 14, 2016 11:43 am
Let's take only the interesting parts, starting from the beginning of the error message you provided :
- Code: Select all
LCD_2000_7775.h:53:18: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX()'
[...]
LCD_2000_7775.h:53:18: note: candidates are:
[...]
Adafruit_GFX(int16_t w, int16_t h); // Constructor
[...]
Adafruit_GFX.h:17:3: note: candidate expects 2 arguments, 0 provided
This means that you are trying to call the function Adafruit_GFX(), but it doesn't exist.
Potential candidate would be Adafruit_GFP(in16_t w, int16_t h).
So either you change the original Adafruit_GFX() to pass it the arguments it needs, something like Adafruit_GFX(width, height).
Or you create a new Adafruit_GFX() constructor which doesn't require any argument.
-
![User avatar](./download/file.php?avatar=2_1505825079.jpg)
rodot
- Site Admin
-
- Posts: 1290
- Joined: Mon Nov 19, 2012 11:54 pm
- Location: France
-
by Duhjoker » Fri Sep 16, 2016 8:20 am
ok thank you for the reply..
I moved the constructor stuff at the very top to the cpp file which seems to have fixed that problem, now im getting the argument errors(trying wrap my head around that part) but its also canceling out the gb stuff as seen here.
- Code: Select all
WARNING: Category '' in library LCD_2000_7775 is not valid. Setting to 'Uncategorized'
ESMERELDA:7: error: use of deleted function 'Gamebuino::Gamebuino()'
Gamebuino gb;
^
In file included from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:0:
C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:38:7: note: 'Gamebuino::Gamebuino()' is implicitly deleted because the default definition would be ill-formed:
class Gamebuino {
^
C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:38:7: error: use of deleted function 'LCD_2000_7775::LCD_2000_7775()'
In file included from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:0:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:44:7: note: 'LCD_2000_7775::LCD_2000_7775()' is implicitly deleted because the default definition would be ill-formed:
class LCD_2000_7775 : public Adafruit_GFX
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:44:7: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX()'
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:44:7: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:17:3: note: Adafruit_GFX::Adafruit_GFX(int16_t, int16_t)
Adafruit_GFX(int16_t w, int16_t h); // Constructor
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:17:3: note: candidate expects 2 arguments, 0 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: constexpr Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
class Adafruit_GFX : public Print {
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: candidate expects 1 argument, 0 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: constexpr Adafruit_GFX::Adafruit_GFX(Adafruit_GFX&&)
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:13:7: note: candidate expects 1 argument, 0 provided
ESMERELDA: In function 'void loop()':
ESMERELDA:104: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int, int, const byte [530])'
gb.display.drawBitmap(0,0,room_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:104:37: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:107: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [258])'
gb.display.drawBitmap(player_x,player_y,sever_front_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:107:58: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:116: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [8])'
gb.display.drawBitmap(player_x,player_y,sever_rear_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:116:57: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:130: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [258])'
gb.display.drawBitmap(player_x,player_y,sever_front_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:130:58: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:143: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [8])'
gb.display.drawBitmap(player_x,player_y,sever_right_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:143:58: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
ESMERELDA:155: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int&, int&, const byte [8])'
gb.display.drawBitmap(player_x,player_y,sever_left_1);
^
C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:155:57: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/LCD_2000_7775.h:10:0,
from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:1:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 3 provided
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775\src/utility/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 3 provided
Multiple libraries were found for "gfxfont.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ssd1351
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
use of deleted function 'Gamebuino::Gamebuino()'
not sure how to fix the stuff at the top
Should I use something like LCD_2000_7775.display instead of gb.display in my sketch since I changed the display to LCD blah blah blah
edit ok so I went back into gamebuino.h and played with the Display. first I changed it to lcd_2000_7775 display; then I changed it to Display lcd_2000_7775; and now I get this error.
- Code: Select all
Arduino: 1.6.11 (Windows 7), TD: 1.30-beta3, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz optimize speed (overclock), US English"
WARNING: Category '' in library LCD_2000_7775 is not valid. Setting to 'Uncategorized'
In file included from C:\Users\duhjoker\Desktop\Gamebuino_master\VERSIONS\ESMERELDA\ESMERELDA\ESMERELDA.ino:5:0:
C:\Users\duhjoker\Documents\Arduino\libraries\Gamebuinosummoner123/Gamebuino.h:45:2: error: 'Display' does not name a type
Display LCD_2000_7775;// display;
^
ESMERELDA: In function 'void loop()':
ESMERELDA:104: error: 'class Gamebuino' has no member named 'LCD_2000_7775'
gb.LCD_2000_7775.drawBitmap(0,0,room_1);
^
ESMERELDA:107: error: 'class Gamebuino' has no member named 'display'
gb.display.drawBitmap(player_x,player_y,sever_front_1);
^
ESMERELDA:116: error: 'class Gamebuino' has no member named 'display'
gb.display.drawBitmap(player_x,player_y,sever_rear_1);
^
ESMERELDA:130: error: 'class Gamebuino' has no member named 'display'
gb.display.drawBitmap(player_x,player_y,sever_front_1);
^
ESMERELDA:143: error: 'class Gamebuino' has no member named 'display'
gb.display.drawBitmap(player_x,player_y,sever_right_1);
^
ESMERELDA:155: error: 'class Gamebuino' has no member named 'display'
gb.display.drawBitmap(player_x,player_y,sever_left_1);
^
Multiple libraries were found for "gfxfont.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ssd1351
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX
'class Gamebuino' has no member named 'LCD_2000_7775'
-
![User avatar](./download/file.php?avatar=1814_1472792899.jpg)
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by Duhjoker » Sat Sep 17, 2016 7:17 am
All right guys I'm really close to cracking this. The errors above for the gb.display was an easy fix when I noticed that removed the include for it. So I added that and I'm closer. What else I dis was change the names of the LCD_2000_7775.h to LCD.h then went through the code and changed all the LCD commands to LCD.h. I did the same with the adafruit_gfx file simply naming it GFX and made the nessacary adjustments.
if I compile using display.h I get a few errors about something in the display.cpp file.
804 font height not declared in this scope
807 draw pixel not.....
811 bgcolor not......
814 drawpixel not declared.
-
![User avatar](./download/file.php?avatar=1814_1472792899.jpg)
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
Return to Programming Questions
Who is online
Users browsing this forum: No registered users and 70 guests