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