Go Down

Topic: New TFT Extension Library (Read 12 times) previous topic - next topic

ikravets

Thanks a lot for your job!

Can you share this library on https://github.com, then I will add it to PlatformIO Library Register.

HazardsMind

I am in the process of setting up a Github account but I dont know how to use Github.
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

ikravets


HazardsMind

I guess I did it.

https://github.com/AndrewMascolo/The-Libraries-I-use/
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

ikravets

#79
Oct 08, 2014, 10:19 am Last Edit: Oct 08, 2014, 03:24 pm by ikravets Reason: 1
Looks great for beginning! But CVS(like, SVN, GIT) was developed for keep track of all work and all changes in a set of files. This isn't good practice to keep in repository source that was packed in archive.

I recommend to create for each library separated repository with detailed information about it inside README.md file. See TOP examples by "arduino library" search query on GitHub:

  • https://github.com/shirriff/Arduino-IRremote

  • https://github.com/interactive-matter/aJson


and etc.

In your case the list of repositories:

  • Arduino-OneWireKeypad

  • Arduino-SeeedTouchScreen_V2

  • Arduino-SerialServo



and etc..

P.S: Which OS type do you use?


HazardsMind

This is the first time I have ever used Github and it is not straight forward or easy at all, so I'm surprised I was able to post anything.

Quote
recommend to create for each library separated repository with detailed information about it inside README.md file. See TOP examples by "arduino library" search query on GitHub:

I will look into that.

I am using Windows 8.1
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

robsworld78

Hi, nice library you've created, thanks for sharing. I'm interested in using the vertical slider but I'm using a 5" display and having troubles. When I load the example it shows 3 bars on the display with a box. The touch isn't working on the actual sliders, to move them I need to touch other areas of the screen and instead of sliding vertically I have to slide horizontally? The square box does show the color mix like it should.

I opened the .cpp file and saw the display resolution, I changed it to 800x480 but that doesn't seem to affect it any.

Do you have any idea?

HazardsMind

#82
Oct 24, 2014, 09:09 pm Last Edit: Oct 24, 2014, 09:19 pm by HazardsMind
Do you know if your touchscreen calibrated correctly? What screen orientation are you using and is it the same for the UTFT, UTouch and my library's setting?

Try this code and see if the values make sense. (Be sure to change the constructors)
Code: [Select]
#include <UTFT.h>
#include <UTouch.h>

// Declare which fonts we will be using
extern uint8_t SmallFont[];

//myGLCD(RS,WR,CS,RST,ALE,mode);
UTFT myGLCD(ITDB32S,A1,A2,A0,A3,A5);
//myTouch(TCLK,TCS,DIN,DOUT,IRQ);
UTouch  myTouch(13,10,11,12,A4);

void setup()
{
  myGLCD.InitLCD(LANDSCAPE);
  myGLCD.clrScr();
  myGLCD.setFont(SmallFont);
  myTouch.InitTouch(LANDSCAPE);
  myTouch.setPrecision(PREC_LOW);
  myGLCD.fillScr(0,0,0);
  }

void loop()
{
  Debug(myTouch.getX(), myTouch.getY());  
}

void Debug(int X, int Y)
{
  myGLCD.setBackColor(0, 0, 0);//background of text is black
  myGLCD.setColor(255,255,255); // test color is white

  myGLCD.print("X: ", 0,0, 0);
  if(X < 100){
    myGLCD.print("  ", 29,0, 0);
    myGLCD.printNumI(X, 24, 0);
  }
  else myGLCD.printNumI(X, 24, 0);

  myGLCD.print("Y: ", 55,0,0);
  if(Y < 100){
    myGLCD.print("  ", 84,0, 0);
    myGLCD.printNumI(Y, 79, 0);
  }
  else myGLCD.printNumI(Y, 79, 0);
}
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

Go Up