Начал делать панельку для снегохода при программировании наткнулся на проблему Дуе ругается на картики, выдаёт такое сообщение
Arduino: 1.5.7 (Windows XP), Board: "Arduino Due (Programming Port)"
paneldue.ino: In function 'void setup()':
paneldue.ino:83:46: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [900], int)'
paneldue.ino:83:46: note: candidates are:
In file included from paneldue.ino:12:0:
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: no known conversion for argument 5 from 'unsigned int [900]' to 'short unsigned int*'
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: candidate expects 8 arguments, 6 provided
paneldue.ino:84:46: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [900], int)'
paneldue.ino:84:46: note: candidates are:
In file included from paneldue.ino:12:0:
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: no known conversion for argument 5 from 'unsigned int [900]' to 'short unsigned int*'
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: candidate expects 8 arguments, 6 provided
paneldue.ino:85:47: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [900], int)'
paneldue.ino:85:47: note: candidates are:
In file included from paneldue.ino:12:0:
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: no known conversion for argument 5 from 'unsigned int [900]' to 'short unsigned int*'
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: candidate expects 8 arguments, 6 provided
paneldue.ino:86:47: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [900], int)'
paneldue.ino:86:47: note: candidates are:
In file included from paneldue.ino:12:0:
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: no known conversion for argument 5 from 'unsigned int [900]' to 'short unsigned int*'
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: candidate expects 8 arguments, 6 provided
paneldue.ino:87:49: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [900], int)'
paneldue.ino:87:49: note: candidates are:
In file included from paneldue.ino:12:0:
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: no known conversion for argument 5 from 'unsigned int [900]' to 'short unsigned int*'
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: candidate expects 8 arguments, 6 provided
paneldue.ino:88:45: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [900], int)'
paneldue.ino:88:45: note: candidates are:
In file included from paneldue.ino:12:0:
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: no known conversion for argument 5 from 'unsigned int [900]' to 'short unsigned int*'
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: candidate expects 8 arguments, 6 provided
paneldue.ino:89:46: error: no matching function for call to 'UTFT::drawBitmap(int, int, int, int, unsigned int [900], int)'
paneldue.ino:89:46: note: candidates are:
In file included from paneldue.ino:12:0:
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int scale=1);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:228:8: note: no known conversion for argument 5 from 'unsigned int [900]' to 'short unsigned int*'
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: void UTFT::drawBitmap(int, int, int, int, short unsigned int*, int, int, int)
void drawBitmap(int x, int y, int sx, int sy, bitmapdatatype data, int deg, int rox, int roy);
^
C:\Documents and Settings\DreamWolf\Мои документы\Arduino\libraries\UTFT/UTFT.h:229:8: note: candidate expects 8 arguments, 6 provided
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
если закоментить картинки то всё грузится нормально, на мегу тоже грузится нормально
сама прога
002 | #include <avr/pgmspace.h> |
003 | UTFT myGLCD(SSD1289,38,39,40,41); |
005 | extern uint8_t SmallFont[]; |
006 | extern uint8_t BigFont[]; |
007 | extern uint8_t SevenSegNumFont[]; |
009 | extern unsigned int bigtemp[900]; |
010 | extern unsigned int temp[900]; |
011 | extern unsigned int Park[900]; |
012 | extern unsigned int hloff[900]; |
013 | extern unsigned int akum2[900]; |
014 | extern unsigned int reverse[900]; |
015 | extern unsigned int oil[900]; |
016 | extern unsigned int fuel[900]; |
018 | extern unsigned int br[900]; |
053 | myGLCD.setFont(SmallFont); |
054 | myGLCD.fillScr(100, 255, 255); |
055 | myGLCD.setColor(255, 255, 255); |
056 | myGLCD.drawBitmap (103, 84, 30, 30, temp, 1); |
057 | myGLCD.drawBitmap (134, 84, 30, 30, Park, 1); |
058 | myGLCD.drawBitmap (165, 84, 30, 30, hloff, 1); |
059 | myGLCD.drawBitmap (196, 84, 30, 30, akum2, 1); |
060 | myGLCD.drawBitmap (227, 84, 30, 30, reverse, 1); |
061 | myGLCD.drawBitmap (258, 84, 30, 30, oil, 1); |
062 | myGLCD.drawBitmap (289, 84, 30, 30, fuel, 1); |
066 | myGLCD.setColor(0,38,255); |
067 | myGLCD.drawRect(103, 224, 132, 234); |
068 | myGLCD.drawRect(103, 212, 132, 222); |
069 | myGLCD.drawRect(103, 200, 132, 210); |
070 | myGLCD.setColor(0, 0, 0); |
071 | myGLCD.drawRect(103, 188, 132, 198); |
072 | myGLCD.drawRect(103, 176, 132, 186); |
073 | myGLCD.drawRect(103, 164, 132, 174); |
074 | myGLCD.drawRect(103, 152, 132, 162); |
075 | myGLCD.drawRect(103, 140, 132, 150); |
076 | myGLCD.setColor(255,0,0); |
077 | myGLCD.drawRect(103, 128, 132, 138); |
078 | myGLCD.drawRect(103, 116, 132, 126); |
082 | myGLCD.drawRect(289, 224, 317, 234); |
083 | myGLCD.drawRect(289, 212, 317, 222); |
084 | myGLCD.setColor(0, 0, 0); |
085 | myGLCD.drawRect(289, 200, 317, 210); |
086 | myGLCD.drawRect(289, 188, 317, 198); |
087 | myGLCD.drawRect(289, 176, 317, 186); |
088 | myGLCD.drawRect(289, 164, 317, 174); |
089 | myGLCD.drawRect(289, 152, 317, 162); |
090 | myGLCD.drawRect(289, 140, 317, 150); |
091 | myGLCD.drawRect(289, 128, 317, 138); |
092 | myGLCD.drawRect(289, 116, 317, 126); |
096 | myGLCD.setBackColor(100,255,255); |
113 | myGLCD.setColor(0,0,0); |
116 | myGLCD.setFont(SevenSegNumFont); |
125 | myGLCD.printNumI(taho/100, 32, 1); |
126 | myGLCD.print( "0" , 1, 1); |
128 | else myGLCD.printNumI(taho/100, 1, 1); |
131 | r = map(taho, 0, 9000, 150, 200); |
135 | x2 = 218 + sin(2*PI*r/200)*200; |
136 | y2 = 218 - cos(2*PI*r/200)*200; |
139 | myGLCD.setColor(150,230,0); |
140 | myGLCD.fillCircle(x2,y2, 15); |
145 | engtemp = engtemp + tt; |
153 | if (engtemp>=0 & engtemp<=10){ |
154 | myGLCD.setColor(100,255,255); |
155 | myGLCD.fillRect(104, 233, 131, 225); |
157 | myGLCD.setColor(0,38,255); |
158 | myGLCD.fillRect (103, 234-ttt, 132, 234); |
163 | if (engtemp>=10 & engtemp<=20){ |
164 | myGLCD.setColor(100,255,255); |
165 | myGLCD.fillRect(104, 221, 131, 213); |
166 | myGLCD.setColor(0,38,255); |
168 | myGLCD.fillRect(103, 222-ttt, 132, 222); |
173 | if (engtemp>=20 & engtemp<=30){ |
174 | myGLCD.setColor(100,255,255); |
175 | myGLCD.fillRect(104, 209, 131, 201); |
176 | myGLCD.setColor(0,38,255); |
178 | myGLCD.fillRect(103, 210-ttt, 132, 210); |
181 | if (engtemp>=30 & engtemp<=40){ |
182 | myGLCD.setColor(100,255,255); |
183 | myGLCD.fillRect(104, 197, 131, 189); |
184 | myGLCD.setColor(0, 0, 0); |
186 | myGLCD.fillRect(103, 198-ttt, 132, 198); |
189 | if (engtemp>=40 & engtemp<=50){ |
190 | myGLCD.setColor(100,255,255); |
191 | myGLCD.fillRect(104, 185, 131, 177); |
192 | myGLCD.setColor(0, 0, 0); |
194 | myGLCD.fillRect(103, 186-ttt, 132, 186); |
197 | if (engtemp>=50 & engtemp<=60){ |
198 | myGLCD.setColor(100,255,255); |
199 | myGLCD.fillRect(104, 173, 131, 165); |
200 | myGLCD.setColor(0, 0, 0); |
202 | myGLCD.fillRect(103, 174-ttt, 132, 174); |
205 | if (engtemp>=60 & engtemp<=70){ |
206 | myGLCD.setColor(100,255,255); |
207 | myGLCD.fillRect(104, 161, 131, 153); |
208 | myGLCD.setColor(0, 0, 0); |
210 | myGLCD.fillRect(103, 162-ttt, 132, 162); |
213 | if (engtemp>=70 & engtemp<=80){ |
214 | myGLCD.setColor(100,255,255); |
215 | myGLCD.fillRect(104, 149, 131, 141); |
216 | myGLCD.setColor(0, 0, 0); |
218 | myGLCD.fillRect(103, 150-ttt, 132, 150); |
221 | if (engtemp>=80 & engtemp<=90){ |
222 | myGLCD.setColor(100,255,255); |
223 | myGLCD.fillRect(104, 137, 131, 129); |
225 | myGLCD.setColor(255,0,0); |
226 | myGLCD.fillRect(103, 138-ttt, 132, 138); |
229 | if (engtemp>=90 & engtemp<=100){ |
230 | myGLCD.setColor(100,255,255); |
231 | myGLCD.fillRect(104, 125, 131, 117); |
233 | myGLCD.setColor(255,0,0); |
234 | myGLCD.fillRect(103, 126-ttt, 132, 126); |
картинки делал этим конвертером http://www.henningkarlsen.com/electronics/t_imageconverter565.php галочки стояли на .с и чипкит/дуэ, да и просто на ардуину пробывал
проблема решена
01
extern
short
unsigned
int
bigtemp[900];
02
extern
short
unsigned
int
temp[900];
03
extern
short
unsigned
int
Park[900];
04
extern
short
unsigned
int
hloff[900];
05
extern
short
unsigned
int
akum2[900];
06
extern
short
unsigned
int
reverse[900];
07
extern
short
unsigned
int
oil[900];
08
extern
short
unsigned
int
fuel[900];
09
10
extern
short
unsigned
int
br[900];