redtop's Ferduino controller

Rott I was thinking the same thing about you I had to use my cell to see the pictures I really like the 5 inch screen
 
Not sure about the 7 inch I think it is a little to big now there are two 7 inch tft lcd on each side of the bed and they flip up wonder if they will miss one
 
Excellent work... Willie and Fernando

Do you have a link to the 7 inch screen you are using ?

yep, right here http://www.amazon.com/gp/product/B00IYHZQY6/ref=oh_details_o04_s00_i00?ie=UTF8&psc=1

If I have an 800 x 480 5 inch screen I am going to assume it will display the same as the 7 inch screen right ?

I ain't tried it on the 5 inch but it should work since both are 800x480 resolution

finished up the wavemaker screen and the temp probe setup screen plus moved around a bunch of buttons, and they all still work LOL

IMG_3231_zpsf0be013f.jpg


IMG_3229_zps7a3e2f35.jpg


IMG_3228_zpsa1540fd5.jpg


IMG_3230_zpsa2a22710.jpg


IMG_3233_zpsfa6eed43.jpg
 
got all the menu screen buttons moved and resized, got the home screen done, got the wavemaker screen done, got the temp probe screen done, only 70 or 80 more screens to do LOL that was a bit of an exaggeration, but there's a lot of screens on this thing....

I'm really dreading the LED screens and the dosing screens, miles and miles of code to stare at for hours LOL
 
Hi!

Willie, you no need change all coordinates of buttons manually.

Use the tool "find and replace" on this tab:

https://github.com/willie111/Ferdui...uino_with_webcontrol_beta7_0/Botoes_e_etc.ino

Find:

comma space

Replace with:

* 2 comma space

Then

Find:

};

Replace with:

*2};

The result will be as this:

Code:
const byte temM[]= {
  90*2, 35*2, 115*2, 60*2}; // temp. minus

Best regards.

awesome, that is 2 times whatever number there, I wish I had known that last night LOL
 
If you'll use always a big font to texts on buttons.

Find:

https://github.com/willie111/Ferdui...with_webcontrol_beta7_0/Botoes_e_etc.ino#L232

Code:
  if (setFont) {
    myGLCD.setFont(BigFont); 
    fx = x1+(((x2 - x1+1)-(stl*16))/2);
    fy = y1+(((y2 - y1+1)-16)/2);
    myGLCD.print(text, fx, fy);
  }
  else {
    myGLCD.setFont(RusFont1); 
    fx = x1+(((x2 - x1)-(stl*8))/2);
    fy = y1+(((y2 - y1-1)-6)/2);
    myGLCD.print(text, fx, fy);
  }

Replace with:

Code:
    myGLCD.setFont(BigFont); 
    fx = x1+(((x2 - x1+1)-(stl*16))/2);
    fy = y1+(((y2 - y1+1)-16)/2);
    myGLCD.print(text, fx, fy);
 
If you'll use always a big font to texts on buttons.

Find:

https://github.com/willie111/Ferdui...with_webcontrol_beta7_0/Botoes_e_etc.ino#L232

Code:
  if (setFont) {
    myGLCD.setFont(BigFont); 
    fx = x1+(((x2 - x1+1)-(stl*16))/2);
    fy = y1+(((y2 - y1+1)-16)/2);
    myGLCD.print(text, fx, fy);
  }
  else {
    myGLCD.setFont(RusFont1); 
    fx = x1+(((x2 - x1)-(stl*8))/2);
    fy = y1+(((y2 - y1-1)-6)/2);
    myGLCD.print(text, fx, fy);
  }

Replace with:

Code:
    myGLCD.setFont(BigFont); 
    fx = x1+(((x2 - x1+1)-(stl*16))/2);
    fy = y1+(((y2 - y1+1)-16)/2);
    myGLCD.print(text, fx, fy);

stuff like that is awesome to know Fernando, I've noticed a lot of things you've done to this code to make it easier to work with and alter to fit specific needs....

once I have everything else up sized I'll use that, right now I still have a few smaller buttons and I'm thinking the large text may not fit properly

rather than replace or remove anything, this option will work too, will it not ?

myGLCD.setBackColor(0, 0, 200);
//if (setFont) {
myGLCD.setFont(BigFont);
fx = x1+(((x2 - x1+1)-(stl*16))/2);
fy = y1+(((y2 - y1+1)-16)/2);
myGLCD.print(text, fx, fy);
/* }
else {
myGLCD.setFont(RusFont1);
fx = x1+(((x2 - x1)-(stl*8))/2);
fy = y1+(((y2 - y1-1)-6)/2);
myGLCD.print(text, fx, fy);
}*/
}
 
Last edited:
If you want use some font small is better add a "true" to each button where the font will be big.

As this:

Code:
printButton(buffer, tanD[0], tanD[1], tanD[2], tanD[3], true);
 
Willie you might like to use this piece of code for am and pm time located in the
Inicio

Code:
void mainScreen(boolean refreshAll=false)
{
  int ledLevel, s, u;
  String oldval, rtc1, rtcm, oldano;
  oldval = day;
  oldano = ano;
  int Hour12;
  String ampm;
  day = String(t.date);                             //Atualiza se a data for diferente
  ano = String(t.year);
  int offset = 0;

  setFont(LARGE, 255, 255, 0, 0, 0, 0);
 // myGLCD.print(rtc.getTimeStr(FORMAT_LONG), 630, 454); 
  
      {
      if (t.hour==0) { Hour12 = 12; }                          //12 HR Format
        else {
          if (t.hour>12) { Hour12 = t.hour-12; }
            else { Hour12 = t.hour; }}

      if (Hour12<10)
        { myGLCD.print(" ", 652, 454);
          myGLCD.printNumI(Hour12, 668, 454);}
      else
        { myGLCD.printNumI(Hour12, 652, 454);}
      myGLCD.print(":", 684, 454);
      if (t.min<10)
        { myGLCD.printNumI(0, 700, 454);
          myGLCD.printNumI(t.min, 716, 454);}
      else
        { myGLCD.printNumI(t.min, 700, 454);}
        
   setFont(LARGE, 0, 0, 255, 0, 0, 0);
      if(t.hour < 12){ myGLCD.print(" AM  ", 732, 454); }      //Adding the AM/PM sufffix
        else { myGLCD.print(" PM  ", 732, 454); }
    }

comment out myGLCD.print(rtc.getTimeStr(FORMAT_LONG), 630, 454);
 
Willie you might like to use this piece of code for am and pm time located in the
Inicio

Code:
void mainScreen(boolean refreshAll=false)
{
  int ledLevel, s, u;
  String oldval, rtc1, rtcm, oldano;
  oldval = day;
  oldano = ano;
  int Hour12;
  String ampm;
  day = String(t.date);                             //Atualiza se a data for diferente
  ano = String(t.year);
  int offset = 0;

  setFont(LARGE, 255, 255, 0, 0, 0, 0);
 // myGLCD.print(rtc.getTimeStr(FORMAT_LONG), 630, 454); 
  
      {
      if (t.hour==0) { Hour12 = 12; }                          //12 HR Format
        else {
          if (t.hour>12) { Hour12 = t.hour-12; }
            else { Hour12 = t.hour; }}

      if (Hour12<10)
        { myGLCD.print(" ", 652, 454);
          myGLCD.printNumI(Hour12, 668, 454);}
      else
        { myGLCD.printNumI(Hour12, 652, 454);}
      myGLCD.print(":", 684, 454);
      if (t.min<10)
        { myGLCD.printNumI(0, 700, 454);
          myGLCD.printNumI(t.min, 716, 454);}
      else
        { myGLCD.printNumI(t.min, 700, 454);}
        
   setFont(LARGE, 0, 0, 255, 0, 0, 0);
      if(t.hour < 12){ myGLCD.print(" AM  ", 732, 454); }      //Adding the AM/PM sufffix
        else { myGLCD.print(" PM  ", 732, 454); }
    }

comment out myGLCD.print(rtc.getTimeStr(FORMAT_LONG), 630, 454);

awesome, I now have am/pm and the 12hr time format on the display, thank you sir...that gives me even more stuff to mess with now LOL
 
redtop03 after you get this all done any idea what your going to use as an enclosure??

I really hadn't thought it out that far LOL but I will most likely mount the screen in my canopy somehow....and I may not even use the 7" screen until I have my big tank back up, then I will mount the screen in the wall...I'll build something like a medicine cabinet for it that I can recess into the wall

I have a Ferduino controller already running on my tank right now, this 7" screen is on my extra Mega, an was really an after thought, I really hadn't made any plans for it

I have a lot of the up scaling already done, but there's a ton more stuff to do the 7 inch screen was really more of a "let's see if I can do it thing LOL
 
well it looks like you are doing a great so far you have come to far to stop now !!! when do/or have plans to tackle the led screens?
 
Back
Top