The Planted Tank Forum - View Single Post - DIY Aquarium Touchscreen Controller
View Single Post
Old 01-02-2013, 02:40 AM   #90
megamax42
Algae Grower
 
megamax42's Avatar
 
PTrader: (0/0%)
Join Date: Oct 2011
Location: Northern California
Posts: 85
Default

Hey guys, loving this thread as I am in the same boat as you guys. Good to know there are others out there. I'm working with a 3.2" TFT (with SSD1289 controller) and an Arduino mega 2560.

The only set of software I've managed to get working is a folder I downloaded named UTFT off of Henningkarlsons website. Even those however don't work seamlessly. This is the best I've been able to get with them:





So I picked up Jarduino again and have been debugging for quite a while now. I'm using v1.1 and had to make a few modifications I picked up along the way from other programs. A big one is replacing

# include "WProgram.h"

with

# if (ARDUINO >= 100)
# include "Arduino.h"
# else
# include "WProgram.h"
# endif

in the ITDB02_Graph16 and ITDB02_Touch files. I'm still getting this string of errors however:

Jarduino_v1_1.cpp: In function 'void TimeDateBar(boolean)':
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.cpp: In function 'void testArrayScreen(boolean)':
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'
Jarduino_v1_1.pde:-1: error: invalid conversion from 'int' to 'const char*'
Jarduino_v1_1.pde:-1: error: initializing argument 1 of 'String& String:perator=(const char*)'


Hmm, those smiley faces in the code must be the same shortcut text lol.

Any input would be greatly appreciated, sorry to thread-jack
megamax42 is offline   Reply With Quote