Skip to content

Commit 784bdda

Browse files
author
Wvirgil123
committed
init sdk
1 parent 97479ad commit 784bdda

File tree

1,470 files changed

+501506
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,470 files changed

+501506
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SenseCAP Indicator
2+
3+
This is the SDK for SenseCAP Indicator esp32 MCU.

components/bsp/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
idf_component_register(
3+
SRC_DIRS
4+
"src/boards"
5+
"src/peripherals"
6+
"src/storage"
7+
"src/indev"
8+
"src/codec"
9+
"src/calibration"
10+
"src/calibration/basic_painter"
11+
INCLUDE_DIRS
12+
"src/boards"
13+
"src"
14+
"include"
15+
"src/calibration"
16+
REQUIRES
17+
iot_button
18+
esp_hid
19+
esp_lcd
20+
fatfs
21+
bus
22+
i2c_devices
23+
nvs_flash
24+
spiffs
25+
lora)

components/bsp/Kconfig.projbuild

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
menu "Board Configuration"
2+
3+
choice LCD_BOARD
4+
prompt "Select LCD Board"
5+
default LCD_BOARD_SENSECAP_INDICATOR_D1
6+
config LCD_BOARD_EV
7+
bool "ESP32-S3-LCD-EV-BOARD Development Board"
8+
config LCD_BOARD_SENSECAP_INDICATOR_WXM
9+
bool "SenseCAP Indicator for WXM"
10+
config LCD_BOARD_SENSECAP_INDICATOR_D1
11+
bool "SenseCAP Indicator D1/D1S"
12+
config LCD_BOARD_SENSECAP_INDICATOR_D1L
13+
bool "SenseCAP Indicator D1L/D1Pro ( with Lora)"
14+
endchoice
15+
16+
choice LCD_SUB_BOARD
17+
depends on LCD_BOARD_EV
18+
prompt "Select LCD Sub Board"
19+
default LCD_EV_SUB_BOARD2
20+
help
21+
Select an sub board for LCD EV mainboard
22+
config LCD_EV_SUB_BOARD1
23+
bool "SUB_BOARD1 128x64 & 320x240 screen"
24+
config LCD_EV_SUB_BOARD2
25+
bool "SUB_BOARD2 480x480 & 320x480 screen"
26+
config LCD_EV_SUB_BOARD3
27+
bool "SUB_BOARD3 800x480 screen"
28+
config LCD_EV_SUB_BOARD
29+
bool "SUB_BOARD3 800x480 screen"
30+
endchoice
31+
32+
choice LCD_SUB_BOARD1_SCREEN
33+
depends on LCD_EV_SUB_BOARD1
34+
prompt "Select screen for Sub Board1"
35+
default LCD_EV_SUB_BOARD1_LCD_320x240
36+
config LCD_EV_SUB_BOARD1_OLED_128x64
37+
bool "128x64 0.96' OLED screen"
38+
config LCD_EV_SUB_BOARD1_LCD_320x240
39+
bool "320x240 2.4' LCD screen"
40+
endchoice
41+
42+
choice LCD_SUB_BOARD2_SCREEN
43+
depends on LCD_EV_SUB_BOARD2
44+
prompt "Select screen for Sub Board2"
45+
default LCD_EV_SUB_BOARD2_LCD_480x480
46+
config LCD_EV_SUB_BOARD2_LCD_480x480
47+
bool "480x480 3.95' LCD screen"
48+
config LCD_EV_SUB_BOARD2_LCD_480x320
49+
bool "480x320 3.5' LCD screen"
50+
endchoice
51+
52+
choice LCD_SUB_BOARD2_SCREEN_DATA_WIDTH
53+
depends on LCD_EV_SUB_BOARD2_LCD_480x320
54+
prompt "Select data width for 480x320 3.5' LCD screen"
55+
default LCD_EV_SUB_BOARD2_LCD_480x320_8BIT
56+
config LCD_EV_SUB_BOARD2_LCD_480x320_8BIT
57+
bool "8Bit 8080 interface"
58+
config LCD_EV_SUB_BOARD2_LCD_480x320_16BIT
59+
bool "16Bit 8080 interface"
60+
endchoice
61+
62+
choice SENSECAP_INDICATOR_SCREEN
63+
depends on LCD_BOARD_SENSECAP_INDICATOR_WXM || LCD_BOARD_SENSECAP_INDICATOR_D1 || LCD_BOARD_SENSECAP_INDICATOR_D1L
64+
prompt "Select the screen type for SenseCAP Indicator boards"
65+
default SENSECAP_INDICATOR_SCREEN_GX
66+
config SENSECAP_INDICATOR_SCREEN_GX
67+
bool "GuanXian 4.0 inch RGB (SPI+RGB)"
68+
config SENSECAP_INDICATOR_SCREEN_DX
69+
bool "DaXian 4.0 inch RGB (RGB only)"
70+
endchoice
71+
72+
config LCD_EVB_SCREEN_WIDTH
73+
int
74+
default 800 if LCD_EV_SUB_BOARD3
75+
default 480 if LCD_EV_SUB_BOARD2_LCD_480x480 || SENSECAP_INDICATOR_SCREEN_GX || SENSECAP_INDICATOR_SCREEN_DX
76+
default 320 if LCD_EV_SUB_BOARD2_LCD_480x320
77+
default 240 if LCD_EV_SUB_BOARD1_LCD_320x240
78+
default 128 if LCD_EV_SUB_BOARD1_OLED_128x64
79+
80+
config LCD_EVB_SCREEN_HEIGHT
81+
int
82+
default 480 if LCD_EV_SUB_BOARD3 || LCD_EV_SUB_BOARD2_LCD_480x480 || LCD_EV_SUB_BOARD2_LCD_480x320 || SENSECAP_INDICATOR_SCREEN_GX || SENSECAP_INDICATOR_SCREEN_DX
83+
default 320 if LCD_EV_SUB_BOARD1_LCD_320x240
84+
default 64 if LCD_EV_SUB_BOARD1_OLED_128x64
85+
86+
choice LCD_EVB_SCREEN_ROTATION
87+
prompt "Set rotation of lcd and touch"
88+
default LCD_EVB_SCREEN_ROTATION_0
89+
config LCD_EVB_SCREEN_ROTATION_0
90+
bool "Rotate 0"
91+
config LCD_EVB_SCREEN_ROTATION_90
92+
bool "Rotate 90"
93+
config LCD_EVB_SCREEN_ROTATION_180
94+
bool "Rotate 180"
95+
config LCD_EVB_SCREEN_ROTATION_270
96+
bool "Rotate 270"
97+
endchoice
98+
99+
config LCD_EVB_SCREEN_FREQ
100+
depends on LCD_EV_SUB_BOARD2_LCD_480x480 || LCD_EV_SUB_BOARD3 || SENSECAP_INDICATOR_SCREEN_GX || SENSECAP_INDICATOR_SCREEN_DX
101+
int "Frequency of lcd pclk"
102+
default 18
103+
104+
config LCD_AVOID_TEAR
105+
depends on LCD_EV_SUB_BOARD2_LCD_480x480 || LCD_EV_SUB_BOARD3 || SENSECAP_INDICATOR_SCREEN_GX || SENSECAP_INDICATOR_SCREEN_DX
106+
depends on LCD_EVB_SCREEN_ROTATION_0
107+
bool "Avoid tearing effect"
108+
default "n"
109+
110+
choice LCD_LVGL_MODE
111+
depends on LCD_AVOID_TEAR
112+
prompt "Select lvgl mode for avoiding tearing"
113+
default LCD_LVGL_FULL_REFRESH
114+
config LCD_LVGL_FULL_REFRESH
115+
bool "full refresh with two frame psram buffer"
116+
config LCD_LVGL_DIRECT_MODE
117+
bool "direct mode with two frame psram buffer"
118+
endchoice
119+
120+
config LCD_TASK_PRIORITY
121+
depends on LCD_AVOID_TEAR
122+
int "Priority of lcd refresh task"
123+
default 5
124+
125+
config LCD_TASK_REFRESH_TIME
126+
depends on LCD_AVOID_TEAR
127+
int "Screen refresh period(ms)"
128+
default 40
129+
endmenu

0 commit comments

Comments
 (0)