PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
1.1KB

  1. #ifndef _RA8875CAL_H_
  2. #define _RA8875CAL_H_
  3. /* Calibration Data --------------------------------*/
  4. /* ------------- TOUCH SCREEN CALIBRATION (how to) -----------
  5. Touch Screen are not all the same and needs a calibration, you will see
  6. yourself by load touchPaint.ino example, try to paint all over the screen!
  7. If you have space on one or more side you prolly need to calibrate values
  8. ---- perform calibration ----
  9. To perform the touch screen calibration, load libTouchSCalibration.ino and open serial terminal:
  10. (you have to put data inside RA8875/_utility/RA8875Calibration.h)
  11. 1) the lowest value of x by touch the top/left angle of your tft, put value in TOUCSRCAL_XLOW
  12. 2) you can get the lowest value of y in the same time, put value in TOUCSRCAL_YLOW
  13. 3) the highest value of x by touching the lower/bottom corner of your tft, put the value in TOUCSRCAL_XHIGH
  14. 4) in the same manner you get the max value of y, put that value in TOUCSRCAL_XHIGH
  15. */
  16. #define TOUCSRCAL_XLOW 70//62
  17. #define TOUCSRCAL_YLOW 111//153
  18. #define TOUCSRCAL_XHIGH 895//924
  19. #define TOUCSRCAL_YHIGH 880//917
  20. #endif