The Planted Tank Forum - View Single Post - DIY Aquarium Touchscreen Controller
View Single Post
post #55 of (permalink) Old 11-10-2012, 11:17 AM Thread Starter
Mike in MD
Algae Grower
 
Mike in MD's Avatar
 
Join Date: Aug 2012
Location: Maryland
Posts: 80
Lets get the screen working and go from there.

First off, you need to go to file - examples - ITDB02_Touch - Touch calibration.

Go through the steps, and it will give you 4 numbers. Write these numbers down, you'll need them for the next step

Next, go to libraries - ITDB02_Touch Folder, open it and go to ITDB02_Touch.cpp
You want to edit this file. Open the file and look for this line:

#define PixSizeX -15.38
#define PixOffsX 213
#define PixSizeY 11.15
#define PixOffsY 311


Enter the 4 numbers that you got from your touch screen calibration here, then save the file.

Next, open the Jarduinio sketch, make sure this one line looks like below:

//TOUCH PANEL and ITDB02 MEGA SHIELD
//(Mega Shield utilizes pins 5V, 3V3, GND, 2-6, 20-41, & (50-53 for SD Card))
ITDB02 myGLCD(38,39,40,41); //May need to add "ITDB32S" depending on LCD controller
ITDB02_Touch myTouch(6,5,4,3,2);


Once you do this it should compile and be able to upload.

Mike


65 Gallon Tall with Cascade 1000, Wet/Dry and Fluidized bed filter, 3 media reactors, CO2 with CarbonDoser EXT5000 reactor, DIY 36 LED light with Typhon controller. In the works..DIY Touchscreen Aquarium Controller
Mike in MD is offline  
 
 
For the best viewing experience please update your browser to Google Chrome