need help int reading another int?

i am having a little trouble with my sketch... mainly this part....

#include <UTFT.h>  // used to interface with the TFT display
#include <UTouch.h>  // used to interface with the touch controller on the TFT display
#include <avr/pgmspace.h>
#include <Wire.h>
#include <EEPROM.h>
#include "writeAnything.h"
#include <DS1307.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include "DHT.h"
#include <tinyFAT.h> // used to acess the SD card
#include <UTFT_tinyFAT.h>  // used to read .raw images from the SD card
#include <SD.h>    //Used to check for SD card

UTFT myGLCD(SSD1289,38,39,40,41);      //Uncomment this line for the SSD1289 TFT Screen
UTouch myTouch (6,5,4,3,2);      //Pins Used for the Touch screen
UTFT_tinyFAT myFiles(&myGLCD);  // start up an instance to read images from the SD card


int mistingT1OnH, mistingT1OnM, mistingT1OnS, mistingT1OffH, mistingT1OffM, mistingT1OffS; //Misting Timer save settings #1
int mistingT2OnH, mistingT2OnM, mistingT2OnS, mistingT2OffH, mistingT2OffM, mistingT2OffS; //Misting Timer save settings #2
int timerAmPmOn, timerAmPmOff, timerAmPm1On, timerAmPm1Off, timerAmPm2On, timerAmPm2Off;
int timerHoursOn, timerMinsOn, timerSecsOn;
int timerHoursOff, timerMinsOff, timerSecsOff;


struct config_m1{
  int mistingT1onh;
  int mistingT1onm;
  int mistingT1ons;
  int mistingT1offh;
  int mistingT1offm;
  int mistingT1offs;
  int timerAmPm1on;
  int timerAmPm1off;}
misting1Settings;
struct config_m2{
  int mistingT2onh;
  int mistingT2onm;
  int mistingT2ons;
  int mistingT2offh;
  int mistingT2offm;
  int mistingT2offs;
  int timerAmPm2on;
  int timerAmPm2off;}
misting2Settings;



void SaveMisting1ToEEPROM(){
  misting1Settings.mistingT1onh = int (mistingT1OnH);
  misting1Settings.mistingT1onm = int (mistingT1OnM);
  misting1Settings.mistingT1ons = int (mistingT1OnS);
  misting1Settings.mistingT1offh = int (mistingT1OffH);
  misting1Settings.mistingT1offm = int (mistingT1OffM);
  misting1Settings.mistingT1offs = int (mistingT1OffS);
  misting1Settings.timerAmPm1on = int (timerAmPm1On);
  misting1Settings.timerAmPm1off = int (timerAmPm1Off);
EEPROM_writeAnything(30, misting1Settings);}  
void SaveMisting2ToEEPROM(){
  misting2Settings.mistingT2onh = int (mistingT2OnH);
  misting2Settings.mistingT2onm = int (mistingT2OnM);
  misting2Settings.mistingT2ons = int (mistingT2OnS);
  misting2Settings.mistingT2offh = int (mistingT2OffH);
  misting2Settings.mistingT2offm = int (mistingT2OffM);
  misting2Settings.mistingT2offs = int (mistingT2OffS);
  misting2Settings.timerAmPm2on = int (timerAmPm2On);
  misting2Settings.timerAmPm2off = int (timerAmPm2Off);
EEPROM_writeAnything(60, misting2Settings);}


void ReadFromEEPROM()
{
EEPROM_readAnything(30, misting1Settings);
  mistingT1OnH = misting1Settings.mistingT1onh; 
  mistingT1OnM = misting1Settings.mistingT1onm; 
  mistingT1OnS = misting1Settings.mistingT1ons;
  mistingT1OffH = misting1Settings.mistingT1offh; 
  mistingT1OffM = misting1Settings.mistingT1offm; 
  mistingT1OffS = misting1Settings.mistingT1offs;
  timerAmPm1On = misting1Settings.timerAmPm1on; 
  timerAmPm1Off = misting1Settings.timerAmPm1off;


EEPROM_readAnything(60, misting2Settings);
  mistingT2OnH = misting2Settings.mistingT2onh; 
  mistingT2OnM = misting2Settings.mistingT2onm; 
  mistingT2OnS = misting2Settings.mistingT2ons;
  mistingT2OffH = misting2Settings.mistingT2offh; 
  mistingT2OffM = misting2Settings.mistingT2offm; 
  mistingT2OffS = misting2Settings.mistingT2offs;
  timerAmPm2On = misting2Settings.timerAmPm2on; 
  timerAmPm2Off = misting2Settings.timerAmPm2off;
}


void setTimerScreen()
{
if (timerPage==1){
    printHeader("Set Misting Timer 1");
    timerHoursOn = mistingT1OnH; 
    timerMinsOn = mistingT1OnM; 
    timerSecsOn = mistingT1OnS;
    timerHoursOff = mistingT1OffH; 
    timerMinsOff = mistingT1OffM; 
    timerSecsOff = mistingT1OffS;
    timerAmPmOn = timerAmPm1On; 
    timerAmPmOff = timerAmPm1Off;}
  if (timerPage==2){
    printHeader("Set Misting Timer 2");
    timerHoursOn = mistingT2OnH; 
    timerMinsOn = mistingT2OnM; 
    timerSecsOn = mistingT2OnS;
    timerHoursOff = mistingT2OffH; 
    timerMinsOff = mistingT2OffM; 
    timerSecsOff = mistingT2OffS;
    timerAmPmOn = timerAmPm2On; 
    timerAmPmOff = timerAmPm2Off;}




     myGLCD.setColor(56, 142, 142);                   //Draw comment box
     myGLCD.fillRect(0, 123, 319, 125);               //set time horizontal divider
     myGLCD.fillRect(159, 28, 161, 123);              //Center Divider

      setFont (SMALL, 0, 255, 255, 0, 0, 0);
      myGLCD.print("Sun", 17, 130);
      myGLCD.print("Mon", 51, 130);
      myGLCD.print("Tue", 84, 130);
      myGLCD.print("Wed", 118, 130);
      
 
         setFont (LARGE, 0, 255, 255, 0, 0, 0);
         myGLCD.print("** On **", 17, 20);
         myGLCD.print("** Off **", 170, 20);
         
        
         setFont (LARGE, 255, 255, 255, 0, 0, 0);
         if (timerHoursOn<10)                               //Set Timer On
              { myGLCD.printNumI(0, 2, 70);
                myGLCD.printNumI(timerHoursOn, 18, 70);}
            else
              { myGLCD.printNumI(timerHoursOn, 2, 70);}
         if (timerMinsOn<10)
              { myGLCD.printNumI(0, 45, 70);
                myGLCD.printNumI(timerMinsOn, 61, 70);}
            else
              { myGLCD.printNumI(timerMinsOn, 45, 70);}
         if (timerSecsOn<10)
              { myGLCD.printNumI(0, 88, 70);
                myGLCD.printNumI(timerSecsOn, 104, 70);}
            else
              { myGLCD.printNumI(timerSecsOn, 88, 70);}
         if (timerAmPmOn==0)
            { myGLCD.print("AM", 124, 70);} 
            else 
              { myGLCD.print("PM", 124, 70);}
                  
         if (timerHoursOff<10)                                //Set Timer Off
              { myGLCD.printNumI(0, 164, 70);
                myGLCD.printNumI(timerHoursOff, 180, 70);}
            else
              { myGLCD.printNumI(timerHoursOff, 164, 70);}
         if (timerMinsOff<10)
              { myGLCD.printNumI(0, 207, 70);
                myGLCD.printNumI(timerMinsOff, 223, 70);}
            else
              { myGLCD.printNumI(timerMinsOff, 207, 70);}
         if (timerSecsOff<10)
              { myGLCD.printNumI(0, 250, 70);
                myGLCD.printNumI(timerSecsOff, 266, 70);}
            else
              { myGLCD.printNumI(timerSecsOff, 250, 70);}
         if (timerAmPmOff==0)
           { myGLCD.print("AM", 286, 70);} 
            else 
              { myGLCD.print("PM", 286, 70);}
         
         setFont (LARGE, 255, 255, 255, 0, 0, 0);
         myGLCD.print(":", 32, 70);
         myGLCD.print(":", 75, 70);
         myGLCD.print(":", 194, 70);
         myGLCD.print(":", 237, 70);

}

it compiles fine no error... but when its uploaded, the utft just gives me a blank white screen... but if i comment it out, then it load the screen just fine....

the "timerHoursOn" is the int = to the "mistingT1OnH" which is the int saved to eeprom...

am i doing something wrong? code looks right but its not working... if you need more info please let me know

the void setup and void loop was not included in the code...

am i doing something wrong?

(1) Making your code almost unreadable by putting multiple statements on one line.
(2) If you feel that you must do that then at least put spaces between them
(3) Writing explanations like "the "timerHoursOn" is the int = to the "mistingT1OnH" which is the int saved to eeprom..."
(4) Not using [code] tags around your code
(5) Worst of all not posting your whole program so that the problem can be seen in context

UKHeliBob:
(1) Making your code almost unreadable by putting multiple statements on one line.
(2) If you feel that you must do that then at least put spaces between them
(3) Writing explanations like "the "timerHoursOn" is the int = to the "mistingT1OnH" which is the int saved to eeprom..."
(4) Not using [code] tags around your code
(5) Worst of all not posting your whole program so that the problem can be seen in context

fixed what was stated in your comments... now u can see the code and it should be readable now...

Without the loop or setup, it's impossible to tell.
Do you initialise it? or just read straight from EEPROM and expect it to have a value? do you even read the EEPROM, how can we tell?

Why are all the variables in your code ints when the value of most of them will not exceed 255 as far as I can tell. If that is the case them most, possibly all of them could be declared as bytes which will save half the space they use.

Why have you still not posted all of your program ?

most of the int only reach up to value 3-8 should i replace the int with bytes? still new at the whole arduino coding...

i think i figure it out... with my white screen... it seems as if i ran out of space? but the max on the ide says 258,048 tho and my sketch is only 178,102 so why is it running out of space...? can any one clear this up? thanks

It would be much easier to answer your question if you had not removed the code that you originally attached to your post. Which Arduino board are you using ?

UKHeliBob:
It would be much easier to answer your question if you had not removed the code that you originally attached to your post. Which Arduino board are you using ?

i am using the arduino mega 2560 with the 3.2 tft touch screen

i didnt wish to host the full code as it wasnt ment to be open public sketch... i know without the code finding help would be hard...

So, if you don't want us to see the entire sketch, and everything you've included then do this, so we can help you.

Create a new sketch with just the parts that having problems, and re-create the problem. Then you can upload that and we can have a look.