![]() The drawPixel function is responsible for painting a single point on the screen at the given point. Now let's take a look at some graphical functions that libraries can offer us. ![]() Serial.print("Y: ") Serial.println(touchPoint.y) Serial.print("X: ") Serial.println(touchPoint.x) TSPoint touchPoint = ts.getPoint() //pega o touch TouchScreen ts = TouchScreen(XP, YP, XM, YM) objeto para manipulacao dos eventos de toque na tela #include //Portas de leitura das coordenadas do touchvoid These values are important for mapping the touch to the graphic points on the screen. Using a simple program to get the touch points on the display, store the value of the points (x, y) at each end (highlighted in yellow in the figure below). ![]() Unzip the file and paste it into the libraries folder of the Arduino IDE.Ĭ: / Program Files (x86) / Arduino / librariesīefore we start our program, we need to address something important: the TOUCH calibration. Click on the links and download the libraries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |