t-hmi touchhandler class opt out build
This commit is contained in:
parent
e8c2db5642
commit
42b5f11d3c
@ -1,4 +1,6 @@
|
|||||||
#include "drivers/displays/display.h"
|
|
||||||
|
#include "drivers/devices/device.h"
|
||||||
|
#ifdef TOUCH_ENABLE
|
||||||
#include "TouchHandler.h"
|
#include "TouchHandler.h"
|
||||||
|
|
||||||
// Global variable declaration
|
// Global variable declaration
|
||||||
@ -64,3 +66,4 @@ bool TouchHandler::debounce() {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
@ -1,6 +1,6 @@
|
|||||||
#ifndef _TOUCHHANDLER_H_
|
#ifndef _TOUCHHANDLER_H_
|
||||||
#define _TOUCHHANDLER_H_
|
#define _TOUCHHANDLER_H_
|
||||||
|
#ifdef TOUCH_ENABLE
|
||||||
#include <TFT_eSPI.h> // TFT display library
|
#include <TFT_eSPI.h> // TFT display library
|
||||||
#include <xpt2046.h> // https://github.com/liangyingy/arduino_xpt2046_library
|
#include <xpt2046.h> // https://github.com/liangyingy/arduino_xpt2046_library
|
||||||
|
|
||||||
@ -25,6 +25,6 @@ private:
|
|||||||
// unsigned int lower_switch;
|
// unsigned int lower_switch;
|
||||||
void (*screenSwitchCallback)();
|
void (*screenSwitchCallback)();
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -12,8 +12,9 @@
|
|||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "monitor.h"
|
#include "monitor.h"
|
||||||
#include "OpenFontRender.h"
|
#include "OpenFontRender.h"
|
||||||
|
#ifdef TOUCH_ENABLE
|
||||||
#include "TouchHandler.h"
|
#include "TouchHandler.h"
|
||||||
|
#endif
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <esp_adc_cal.h>
|
#include <esp_adc_cal.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user