Problema librerie

Ciao ragazzi, avrei bisogno di una mano per trovare le librerie per gestire questi shield… ho gia fatto provato a fare qualche schat ma solo con il relè e la sonda di temperatura ma il TFT non riesco in nessun modo a trovare le librerie… qualcuno puo darmi una mano??

Grazie

25085.jpg

ciao

avrei bisogno di una mano per trovare le librerie per gestire questi shield..

dove hai acquistato lo shield con LCD? Puoi postare il link?

Ciao.. certo http://www.ebay.it/itm/261027696490?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

Ciao, apparte che nell'inserzione c'è scritto:

We offer the sample code for arduino

hai chiesto al venditore questo fantomagico codice? :P

Cmq, il controller del LCD è il SSD1289, e san google ci dice che forse qui trovi qualche prima risposta: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1256896315/60 http://iteadstudio.com/store/index.php?main_page=product_info&products_id=54

avevo gia scaricato questa libreria ho riprovato adesso e mi da lo stesso errore.. " no matching function for call to 'ITDB02::setFont(unit8_t [])'...

prego dacci lo sketch che stai provando e tutti i messaggi di errore. Ciao Uwe

#include <ITDB02_Graph16.h>

extern uint8_t SmallFont;

ITDB02 myGLCD(38,39,40,41);

void setup()
{
randomSeed(analogRead(0));

// Setup the LCD
myGLCD.InitLCD();
myGLCD.setFont(SmallFont);
}

void loop()
{
int buf[238];
int x, x2;
int y, y2;
int r;

// Clear the screen and draw the frame
myGLCD.clrScr();

myGLCD.setColor(255, 0, 0);
myGLCD.fillRect(0, 0, 239, 13);
myGLCD.setColor(64, 64, 64);
myGLCD.fillRect(0, 306, 239, 319);
myGLCD.setColor(255, 255, 255);
myGLCD.setBackColor(255, 0, 0);
myGLCD.print(“QVGA TFT 240x320 Color Display”, CENTER, 1);
myGLCD.setColor(255, 128, 128);
myGLCD.setBackColor(64, 64, 64);
myGLCD.print(“H.Karlsen”, LEFT, 307);
myGLCD.print("(C)2011", RIGHT, 307);
myGLCD.setColor(255,255,0);
myGLCD.print(“Portrait”, CENTER, 307);

myGLCD.setColor(0, 0, 255);
myGLCD.drawLine(0, 14, 239, 14);
myGLCD.drawLine(0, 14, 0, 305);
myGLCD.drawLine(239, 14, 239, 305);
myGLCD.drawLine(0, 305, 239, 305);

// Draw crosshairs
myGLCD.setColor(0, 0, 255);
myGLCD.setBackColor(0, 0, 0);
myGLCD.drawLine(119, 15, 119, 304);
myGLCD.drawLine(1, 159, 238, 159);
for (int i=9; i<240; i+=10)
myGLCD.drawLine(i, 157, i, 161);
for (int i=19; i<300; i+=10)
myGLCD.drawLine(117, i, 121, i);

// Draw sin-, cos- and tan-lines
myGLCD.setColor(0,255,255);
myGLCD.print(“Sin”, 5, 15);
for (int i=1; i<238; i++)
{
myGLCD.drawPixel(i,159+(sin(((i*1.51)*3.14)/180)*100));
}

myGLCD.setColor(255,0,0);
myGLCD.print(“Cos”, 5, 27);
for (int i=1; i<238; i++)
{
myGLCD.drawPixel(i,159+(cos(((i*1.51)*3.14)/180)*100));
}

myGLCD.setColor(255,255,0);
myGLCD.print(“Tan”, 5, 39);
for (int i=1; i<238; i++)
{
myGLCD.drawPixel(i,159+(tan(((i*1.51)*3.14)/180)));
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);
myGLCD.setColor(0, 0, 255);
myGLCD.setBackColor(0, 0, 0);
myGLCD.drawLine(119, 15, 119, 304);
myGLCD.drawLine(1, 159, 238, 159);

// Draw a moving sinewave
x=1;
for (int i=1; i<6902; i++)
{
x++;
if (x==239)
x=1;
if (i>239)
{
if ((x==119)||(buf[x-1]==159))
myGLCD.setColor(0,0,255);
else
myGLCD.setColor(0,0,0);
myGLCD.drawPixel(x,buf[x-1]);
}
myGLCD.setColor(0,255,255);
y=159+(sin(((i*1.4)3.14)/180)(100-(i / 100)));
myGLCD.drawPixel(x,y);
buf[x-1]=y;
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

// Draw some filled rectangles
for (int i=1; i<6; i++)
{
switch (i)
{
case 1:
myGLCD.setColor(255,0,255);
break;
case 2:
myGLCD.setColor(255,0,0);
break;
case 3:
myGLCD.setColor(0,255,0);
break;
case 4:
myGLCD.setColor(0,0,255);
break;
case 5:
myGLCD.setColor(255,255,0);
break;
}
myGLCD.fillRect(30+(i20), 70+(i20), 90+(i20), 130+(i20));
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

// Draw some filled, rounded rectangles
for (int i=1; i<6; i++)
{
switch (i)
{
case 1:
myGLCD.setColor(255,0,255);
break;
case 2:
myGLCD.setColor(255,0,0);
break;
case 3:
myGLCD.setColor(0,255,0);
break;
case 4:
myGLCD.setColor(0,0,255);
break;
case 5:
myGLCD.setColor(255,255,0);
break;
}
myGLCD.fillRoundRect(150-(i20),70+(i20), 210-(i20), 130+(i20));
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

// Draw some filled circles
for (int i=1; i<6; i++)
{
switch (i)
{
case 1:
myGLCD.setColor(255,0,255);
break;
case 2:
myGLCD.setColor(255,0,0);
break;
case 3:
myGLCD.setColor(0,255,0);
break;
case 4:
myGLCD.setColor(0,0,255);
break;
case 5:
myGLCD.setColor(255,255,0);
break;
}
myGLCD.fillCircle(60+(i20),100+(i20), 30);
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

// Draw some lines in a pattern
myGLCD.setColor (255,0,0);
for (int i=15; i<304; i+=5)
{
myGLCD.drawLine(1, i, (i/1.22)-10, 304);
}
myGLCD.setColor (255,0,0);
for (int i=304; i>15; i-=5)
{
myGLCD.drawLine(238, i, (i/1.22)-11, 15);
}
myGLCD.setColor (0,255,255);
for (int i=304; i>15; i-=5)
{
myGLCD.drawLine(1, i, 251-(i/1.22), 15);
}
myGLCD.setColor (0,255,255);
for (int i=15; i<304; i+=5)
{
myGLCD.drawLine(238, i, 250-(i/1.22), 304);
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

// Draw some random circles
for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=32+random(175);
y=45+random(212);
r=random(30);
myGLCD.drawCircle(x, y, r);
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

// Draw some random rectangles
for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=2+random(236);
y=16+random(287);
x2=2+random(236);
y2=16+random(287);
myGLCD.drawRect(x, y, x2, y2);
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

// Draw some random rounded rectangles
for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=2+random(236);
y=16+random(287);
x2=2+random(236);
y2=16+random(287);
myGLCD.drawRoundRect(x, y, x2, y2);
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(2,16,238,304);

for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=2+random(236);
y=16+random(289);
x2=2+random(236);
y2=16+random(289);
myGLCD.drawLine(x, y, x2, y2);
}

delay(2000);

myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,238,304);

for (int i=0; i<10000; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
myGLCD.drawPixel(2+random(236), 16+random(289));
}

delay(2000);

myGLCD.fillScr(0, 0, 255);
myGLCD.setColor(255, 0, 0);
myGLCD.fillRoundRect(30, 100, 209, 219);

myGLCD.setColor(255, 255, 255);
myGLCD.setBackColor(255, 0, 0);
myGLCD.print(“That’s it!”, CENTER, 133);
myGLCD.print(“Restarting in a”, CENTER, 159);
myGLCD.print(“few seconds…”, CENTER, 172);

myGLCD.setColor(0, 0, 0);
myGLCD.setBackColor(0, 0, 255);
myGLCD.print(“Runtime: (msecs)”, CENTER, 290);
myGLCD.printNumI(millis(), CENTER, 305);

delay (10000);
}

ERRORI In file included from ITDB02_Graph16_Demo.cpp:2: C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:59:22: error: WProgram.h: No such file or directory In file included from ITDB02_Graph16_Demo.cpp:2: C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:63: error: ISO C++ forbids declaration of 'uint8_t' with no type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:63: error: expected ';' before '' token C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:64: error: 'uint8_t' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:65: error: 'uint8_t' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:66: error: 'uint8_t' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:67: error: 'uint8_t' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:74: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:75: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:79: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:79: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:79: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:86: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:86: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:86: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:87: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:87: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:87: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:90: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:91: error: 'uint8_t' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:96: error: 'byte' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:97: error: 'byte' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:98: error: 'byte' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:100: error: 'byte' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:101: error: ISO C++ forbids declaration of 'uint8_t' with no type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:101: error: expected ';' before '' token C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:102: error: 'uint8_t' does not name a type C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:109: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:109: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:109: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:112: error: 'byte' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:113: error: 'word' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:113: error: 'word' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:113: error: 'word' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:113: error: 'word' has not been declared C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:114: error: 'byte' has not been declared ITDB02_Graph16_Demo.cpp: In function 'void setup()': ITDB02_Graph16_Demo.pde:-1: error: no matching function for call to 'ITDB02::setFont(uint8_t [])' C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h:91: note: candidates are: void ITDB02::setFont(int*)

Sembra un banale errore dato da conflitti di versioni di IDE differenti.

PS: questo discussione dovresti continuarla nella sezione "Software", grazie.

leo72: Sembra un banale errore dato da conflitti di versioni di IDE differenti.

PS: questo discussione dovresti continuarla nella sezione "Software", grazie.

Scusa se te lo chiedo.. e come lo posso risolvere?? per me non è poi cosi banale..

E come la sposto la discussione?

L'errore che ricevi deriva dal fatto che lo sketch non trova il filw WProgram.h, che è il file che contiene le proprietà specifiche di Arduino come "byte".

Dovresti aprire il file che genera quell'errore e sostituire a #include WProgram.h il file Arduino.h. Ma non è detto che così vada. Se stai usando l'IDE 1.0, scaricati la 0022 e prova compilando con quella.

Le discussioni non si possono spostare come normali utenti, difatti ho detto di continuare nella sezione Software. Hai sbagliato ad aprirla qui.

Ciao

Dovresti aprire il file che genera quell'errore e sostituire a #include WProgram.h il file Arduino.h.

nella fattispecie il file che devi andare a modificare è questo: C:\Users\Scorpion\Desktop\Progetto Acquario\Arduino\libraries\ITDB02_Graph16/ITDB02_Graph16.h

e la modifca che puoi effettuare è quella spiegata in questo post: http://arduino.cc/forum/index.php/topic,116466.msg877474.html#msg877474