#ifndef __LCD_TOUCH_H_
#define __LCD_TOUCH_H_

#include <Arduino.h>
#define TP_PRESS_DOWN    0x80  // Touch screen pressed

// Touch screen device structure
typedef struct
{
    uint16_t x[5];        // Current X coordinates (up to 5 touches)
    uint16_t y[5];        // Current Y coordinates
    
    uint8_t  statu;       // Touch status

    uint16_t paint_color; // Current drawing color

} tp_dev_t;

extern tp_dev_t tp_dev;

void TP_Init(void);         // Initialize touch
void TP_Scan(uint8_t mode); // Scan for touch
void Load_Draw_Board(void); // Draw the board interface
void TP_Test(void);         // Main touch test loop

#endif