Skip to content

Commit 406aa56

Browse files
committed
feat(lcd_panel): fix i2c of ft5x06 and update test_apps
close #537
1 parent 2a9b0d5 commit 406aa56

File tree

6 files changed

+30
-2
lines changed

6 files changed

+30
-2
lines changed

components/display/touch_panel/ft5x06/ft5x06.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
#include <stdio.h>
8-
#include "driver/i2c.h"
98
#include "i2c_bus.h"
109
#include "ft5x06.h"
1110
#include "esp_log.h"

components/display/touch_panel/ft5x06/ft5x06.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#ifndef _IOT_FT5X06_H_
88
#define _IOT_FT5X06_H_
99

10-
#include "driver/i2c.h"
1110
#include "i2c_bus.h"
1211
#include "touch_panel.h"
1312

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# The following lines of boilerplate have to be in your project's CMakeLists
2+
# in this exact order for cmake to work correctly
3+
cmake_minimum_required(VERSION 3.5)
4+
5+
set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components"
6+
"../../touch_panel"
7+
"../../screen"
8+
"../../../bus"
9+
"../../../i2c_bus"
10+
"../../../spi_bus")
11+
12+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
13+
project(touch_panel_test)

components/display/touch_panel/test/touch_test.c renamed to components/display/touch_panel/test_apps/main/touch_test.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,14 @@ TEST_CASE("Touch FT5x06 test", "[touch_panel][iot]")
270270
lcd.deinit();
271271
scr_interface_delete(interface_drv);
272272
}
273+
274+
void app_main(void)
275+
{
276+
printf(" _____ _ ____ _ _____ _ \n");
277+
printf("|_ _|__ _ _ ___| |__ | _ \\ __ _ _ __ ___| | |_ _|__ ___| |_ \n");
278+
printf(" | |/ _ \\| | | |/ __| '_ \\ | |_) / _` | '_ \\ / _ \\ | | |/ _ \\/ __| __|\n");
279+
printf(" | | (_) | |_| | (__| | | | | __/ (_| | | | | __/ | | | __/\\__ \\ |_ \n");
280+
printf(" |_|\\___/ \\__,_|\\___|_| |_| |_| \\__,_|_| |_|\\___|_| |_|\\___||___/\\__|\n");
281+
printf(" \n");
282+
unity_run_menu();
283+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# For IDF 5.0
2+
CONFIG_FREERTOS_HZ=1000
3+
CONFIG_ESP_TASK_WDT_EN=n
4+
5+
# For IDF4.4
6+
CONFIG_ESP_TASK_WDT=n

0 commit comments

Comments
 (0)