Serial.println(F("Using Adafruit 2.4\" TFT Breakout Board Pinout")) Serial.println(F("Using Adafruit 2.4\" TFT Arduino Shield Pinout")) TSPoint p = ts.getPoint() stores the length (x), width (y) and compression (z) in the p object.ĭisplaying Text and Shapes on Arduino 2.4 LCD /*Īdafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET) Serial.print("\tPressure = ") Serial.println(p.z) Serial.print("\tY = ") Serial.print(p.y) TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300) For the one we're using, its 300 ohms across the X plate between X and X- Use any multimeter to read it For better pressure precision, we need to know the resistance You can use this coordination in any other project. Then touch your desired location and write the coordinates displayed on the serial monitor. To do so, you should upload the following code on your Arduino board and open the serial monitor. If you are about to use the LCD, you need to know the coordinates of the point you touch. One of the most important features of this LCD is including a touch panel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |