This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 1 voto(s) - 4 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Utilizacion de Tft con panel tactil en arduino
#1
Hola no sé si recordareis que compré este articulo:
http://www.ebay.es/itm/271214966310

se trata de una shield con una tft con panel tactil, pero no tengo cohones de hacerlo andar, me he puesto en contacto con el chino y me ha facilitado la siguiente libreria
http://bit.ly/1dCMKVT
Al principio me daba un error de que no encontraba cierto archivo llamado "Wprogram.h", googleando he visto que cuando se actualizó el IDE al 1.0 pasó a llamarse ese archivo "Arduino.h", lo he modificado en la libreria, pero ahora dá otro error de compilacion, que no encuentro donde falla, mas concretamente me dice:
Código:
"TFTLCD.h:95: error: conflicting return type specified for 'virtual void TFTLCD::write(uint8_t)'"

a ver si me pudierais echar una mano.
Un saludo.
  Responder
#2
ni zorra tio xD, espero que alguien pueda ayudarte y nos lo explique a todos. suerte
  Responder
#3
Hola!
Cambia en esa linea:
virtual void
por:
virtual size_t

y prueba a compilar, a ver que tal
************************************************************************

Te lo amplio que ayer estaba con el movil:

Cambia en TFTLCD.h, línea 95, quedando así:
virtual size_t write(uint8_t);

Cambia en TFTLCD.cpp, línea 76, quedando:
size_t TFTLCD::write(uint8_t c) {


Asi, el graphicstest.pde compila sin errores en Arduino 1.0.5. Prueba a ver si te funciona.

Saludos.
  Responder
#4
VincentM escribió:Hola!
Cambia en esa linea:
virtual void
por:
virtual size_t

y prueba a compilar, a ver que tal
************************************************************************

Te lo amplio que ayer estaba con el movil:

Cambia en TFTLCD.h, línea 95, quedando así:
virtual size_t write(uint8_t);

Cambia en TFTLCD.cpp, línea 76, quedando:
size_t TFTLCD::write(uint8_t c) {


Asi, el graphicstest.pde compila sin errores en Arduino 1.0.5. Prueba a ver si te funciona.

Saludos.
Gracias crack pero me sigue fallando.
  Responder
#5
Prueba con esta:
https://docs.google.com/a/cxo-on-demand....NlcGM/edit

Sacada de:
http://forum.arduino.cc/index.php?PHPSES...c=134708.0
  Responder
#6
Pido perdon por el retraso, pero es que lo que me pusistes la primera vez me funcionño después, me dí cuenta a los dias de que eran dos fichero diferentes los que habia que modificar jejeje, muchas gracias crack.
  Responder
#7
Mola
  Responder


Posibles temas similares…
Tema Autor Respuestas Vistas Último mensaje
  DUDA Presentación y pregunta. pantalla táctil STONE JASO 0 0 13-12-2023, 01:39 PM
Último mensaje: JASO
  Arduino mega y pantalla TFT LCD Touch 2.4 Problema para pres calpanxo 2 3,553 15-06-2015, 03:50 PM
Último mensaje: calpanxo
  ¿Arduino MEGA o Arduino ADK? igargi 7 3,274 25-08-2013, 04:58 PM
Último mensaje: cansi22