Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block prasertsakd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
CelliesProjects / mapTouch.ino
Last active Jul 19, 2019
Arduino IDE example for ESP32 showing the mapping of XPT2046 touch coordinates to ILI9341 tft coordinates.
View mapTouch.ino
/* Map XPT2046 input to ILI9341 320x240 raster */
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include <XPT2046_Touchscreen.h> /* */
#define TFT_DC 27
#define _sclk 25
#define _mosi 32 /* 10K pull-up */
#define _miso 39
You can’t perform that action at this time.