standardizing project framework

This commit is contained in:
kirltrz 2026-02-24 13:58:42 +08:00
parent 1d31d2b244
commit eff9edb989
11 changed files with 17 additions and 306 deletions

3
.gitignore vendored
View File

@ -37,7 +37,7 @@ sdkconfig
/components/.idf/
**/components/.idf/
# For modern ESP-IDF component manager
managed_components/
# If ESP-IDF tools are installed/referenced locally to the project
.espressif/
@ -76,3 +76,4 @@ Desktop.ini
*.workspace # General workspace files, can be from various tools
*.suo # Visual Studio Solution User Options
*.sln.docstates # Visual Studio
.cache/

View File

@ -17,5 +17,7 @@
"--compile-commands-dir=c:\\Users\\Kirl\\Documents\\st7305port\\build"
],
"commentTranslate.source": "intellsmi.comment-translate-ali.cloud",
"idf.flashType": "UART"
"idf.flashType": "UART",
"idf.currentSetup": "C:\\esp\\v5.5.2\\esp-idf",
"idf.enableSizeTaskAfterBuildTask": false
}

View File

@ -6,30 +6,23 @@ dependencies:
require: private
version: '>=4.1'
source:
registry_url: https://components.espressif.com
registry_url: https://components.espressif.com/
type: service
version: 0.5.3
idf:
source:
type: idf
version: 5.4.3
version: 5.5.2
kevincoooool/esp_lcd_st7305:
component_hash: 836bdeeaf1284004e4673d302f95e515c54cc407595af1aee95626f53ecfba25
dependencies:
- name: espressif/cmake_utilities
registry_url: https://components.espressif.com
require: private
version: 0.*
- name: idf
require: private
version: '>=4.4'
dependencies: []
source:
registry_url: https://components.espressif.com/
type: service
path: C:\Users\Kirl\Documents\ESP-IDF_Project\st7305port\components\kevincoooool__esp_lcd_st7305
type: local
version: 0.0.2
direct_dependencies:
- espressif/cmake_utilities
- idf
- kevincoooool/esp_lcd_st7305
manifest_hash: 9ca2e478e648ad30624f04e3cb3dfcbcfd95fdfa2bf0e923bbec1a59b1813bf9
manifest_hash: 00c85dc7259ec283203ec9a01e000ea6a082efdf6c27e79e1a5b73384002a2d7
target: esp32c3
version: 2.0.0

View File

@ -23,293 +23,7 @@
#define ABS(X) (X >= 0 ? X : -X)
// 二维数组coord[0]对应原【1】coord[1]对应原【2】...coord[285]对应原【286】
int coord[286][2] = {
{69, 11}, // 0 → 【1】
{68, 11}, // 1 → 【2】
{68, 11}, // 2 → 【3】
{66, 11}, // 3 → 【4】
{64, 11}, // 4 → 【5】
{62, 11}, // 5 → 【6】
{59, 11}, // 6 → 【7】
{57, 11}, // 7 → 【8】
{55, 11}, // 8 → 【9】
{53, 12}, // 9 → 【10】
{51, 14}, // 10 → 【11】
{49, 15}, // 11 → 【12】
{48, 16}, // 12 → 【13】
{47, 18}, // 13 → 【14】
{46, 21}, // 14 → 【15】
{45, 23}, // 15 → 【16】
{45, 24}, // 16 → 【17】
{44, 27}, // 17 → 【18】
{44, 29}, // 18 → 【19】
{44, 32}, // 19 → 【20】
{44, 33}, // 20 → 【21】
{44, 35}, // 21 → 【22】
{46, 37}, // 22 → 【23】
{48, 38}, // 23 → 【24】
{51, 39}, // 24 → 【25】
{53, 41}, // 25 → 【26】
{57, 43}, // 26 → 【27】
{59, 44}, // 27 → 【28】
{62, 45}, // 28 → 【29】
{64, 48}, // 29 → 【30】
{67, 49}, // 30 → 【31】
{68, 52}, // 31 → 【32】
{70, 54}, // 32 → 【33】
{71, 58}, // 33 → 【34】
{72, 61}, // 34 → 【35】
{72, 64}, // 35 → 【36】
{72, 69}, // 36 → 【37】
{72, 72}, // 37 → 【38】
{71, 75}, // 38 → 【39】
{69, 78}, // 39 → 【40】
{68, 79}, // 40 → 【41】
{66, 81}, // 41 → 【42】
{65, 83}, // 42 → 【43】
{62, 84}, // 43 → 【44】
{60, 84}, // 44 → 【45】
{58, 84}, // 45 → 【46】
{55, 84}, // 46 → 【47】
{52, 84}, // 47 → 【48】
{50, 84}, // 48 → 【49】
{48, 84}, // 49 → 【50】
{47, 84}, // 50 → 【51】
{45, 84}, // 51 → 【52】
{42, 81}, // 52 → 【53】
{39, 80}, // 53 → 【54】
{117, 11}, // 54 → 【55】
{118, 13}, // 55 → 【56】
{119, 18}, // 56 → 【57】
{119, 22}, // 57 → 【58】
{119, 26}, // 58 → 【59】
{119, 32}, // 59 → 【60】
{119, 36}, // 60 → 【61】
{118, 41}, // 61 → 【62】
{118, 48}, // 62 → 【63】
{117, 54}, // 63 → 【64】
{116, 59}, // 64 → 【65】
{115, 66}, // 65 → 【66】
{115, 69}, // 66 → 【67】
{114, 72}, // 67 → 【68】
{113, 76}, // 68 → 【69】
{113, 80}, // 69 → 【70】
{113, 83}, // 70 → 【71】
{113, 85}, // 71 → 【72】
{113, 86}, // 72 → 【73】
{113, 87}, // 73 → 【74】
{113, 87}, // 74 → 【75】
{126, 15}, // 75 → 【76】
{126, 15}, // 76 → 【77】
{126, 15}, // 77 → 【78】
{126, 15}, // 78 → 【79】
{126, 15}, // 79 → 【80】
{131, 15}, // 80 → 【81】
{136, 15}, // 81 → 【82】
{139, 15}, // 82 → 【83】
{142, 16}, // 83 → 【84】
{144, 18}, // 84 → 【85】
{146, 18}, // 85 → 【86】
{148, 21}, // 86 → 【87】
{151, 24}, // 87 → 【88】
{152, 27}, // 88 → 【89】
{152, 29}, // 89 → 【90】
{153, 31}, // 90 → 【91】
{153, 34}, // 91 → 【92】
{153, 36}, // 92 → 【93】
{153, 40}, // 93 → 【94】
{151, 41}, // 94 → 【95】
{148, 44}, // 95 → 【96】
{147, 46}, // 96 → 【97】
{144, 48}, // 97 → 【98】
{141, 49}, // 98 → 【99】
{139, 50}, // 99 → 【100】
{136, 52}, // 100 → 【101】
{136, 52}, // 101 → 【102】
{135, 52}, // 102 → 【103】
{134, 52}, // 103 → 【104】
{133, 52}, // 104 → 【105】
{133, 52}, // 105 → 【106】
{133, 52}, // 106 → 【107】
{133, 52}, // 107 → 【108】
{135, 52}, // 108 → 【109】
{136, 52}, // 109 → 【110】
{139, 52}, // 110 → 【111】
{142, 52}, // 111 → 【112】
{145, 52}, // 112 → 【113】
{147, 53}, // 113 → 【114】
{148, 55}, // 114 → 【115】
{151, 58}, // 115 → 【116】
{152, 61}, // 116 → 【117】
{152, 65}, // 117 → 【118】
{152, 67}, // 118 → 【119】
{152, 70}, // 119 → 【120】
{153, 74}, // 120 → 【121】
{153, 75}, // 121 → 【122】
{153, 78}, // 122 → 【123】
{151, 80}, // 123 → 【124】
{148, 83}, // 124 → 【125】
{145, 84}, // 125 → 【126】
{142, 87}, // 126 → 【127】
{140, 87}, // 127 → 【128】
{137, 88}, // 128 → 【129】
{135, 89}, // 129 → 【130】
{132, 89}, // 130 → 【131】
{130, 89}, // 131 → 【132】
{127, 89}, // 132 → 【133】
{125, 89}, // 133 → 【134】
{123, 89}, // 134 → 【135】
{122, 89}, // 135 → 【136】
{122, 89}, // 136 → 【137】
{27, 122}, // 137 → 【138】
{27, 122}, // 138 → 【139】
{27, 126}, // 139 → 【140】
{27, 134}, // 140 → 【141】
{27, 140}, // 141 → 【142】
{26, 145}, // 142 → 【143】
{26, 150}, // 143 → 【144】
{25, 155}, // 144 → 【145】
{25, 160}, // 145 → 【146】
{25, 165}, // 146 → 【147】
{25, 171}, // 147 → 【148】
{24, 175}, // 148 → 【149】
{24, 178}, // 149 → 【150】
{23, 182}, // 150 → 【151】
{23, 184}, // 151 → 【152】
{23, 185}, // 152 → 【153】
{23, 185}, // 153 → 【154】
{23, 185}, // 154 → 【155】
{23, 185}, // 155 → 【156】
{62, 133}, // 156 → 【157】
{62, 133}, // 157 → 【158】
{62, 133}, // 158 → 【159】
{62, 133}, // 159 → 【160】
{56, 139}, // 160 → 【161】
{49, 143}, // 161 → 【162】
{43, 147}, // 162 → 【163】
{39, 150}, // 163 → 【164】
{36, 152}, // 164 → 【165】
{35, 152}, // 165 → 【166】
{33, 154}, // 166 → 【167】
{32, 155}, // 167 → 【168】
{32, 155}, // 168 → 【169】
{32, 155}, // 169 → 【170】
{32, 155}, // 170 → 【171】
{32, 155}, // 171 → 【172】
{32, 155}, // 172 → 【173】
{34, 155}, // 173 → 【174】
{39, 160}, // 174 → 【175】
{45, 164}, // 175 → 【176】
{52, 170}, // 176 → 【177】
{58, 174}, // 177 → 【178】
{61, 176}, // 178 → 【179】
{65, 178}, // 179 → 【180】
{67, 179}, // 180 → 【181】
{68, 180}, // 181 → 【182】
{68, 180}, // 182 → 【183】
{69, 181}, // 183 → 【184】
{70, 181}, // 184 → 【185】
{70, 181}, // 185 → 【186】
{72, 182}, // 186 → 【187】
{87, 135}, // 187 → 【188】
{87, 135}, // 188 → 【189】
{87, 135}, // 189 → 【190】
{90, 133}, // 190 → 【191】
{95, 132}, // 191 → 【192】
{99, 132}, // 192 → 【193】
{103, 131}, // 193 → 【194】
{107, 131}, // 194 → 【195】
{109, 131}, // 195 → 【196】
{111, 131}, // 196 → 【197】
{114, 131}, // 197 → 【198】
{116, 131}, // 198 → 【199】
{118, 131}, // 199 → 【200】
{119, 131}, // 200 → 【201】
{120, 131}, // 201 → 【202】
{120, 131}, // 202 → 【203】
{120, 131}, // 203 → 【204】
{120, 131}, // 204 → 【205】
{120, 131}, // 205 → 【206】
{118, 137}, // 206 → 【207】
{116, 141}, // 207 → 【208】
{112, 147}, // 208 → 【209】
{108, 152}, // 209 → 【210】
{105, 155}, // 210 → 【211】
{101, 159}, // 211 → 【212】
{99, 162}, // 212 → 【213】
{94, 167}, // 213 → 【214】
{91, 171}, // 214 → 【215】
{87, 175}, // 215 → 【216】
{85, 178}, // 216 → 【217】
{84, 178}, // 217 → 【218】
{83, 180}, // 218 → 【219】
{83, 180}, // 219 → 【220】
{83, 180}, // 220 → 【221】
{83, 180}, // 221 → 【222】
{85, 180}, // 222 → 【223】
{88, 181}, // 223 → 【224】
{96, 181}, // 224 → 【225】
{102, 181}, // 225 → 【226】
{106, 181}, // 226 → 【227】
{111, 181}, // 227 → 【228】
{114, 181}, // 228 → 【229】
{116, 181}, // 229 → 【230】
{117, 181}, // 230 → 【231】
{119, 181}, // 231 → 【232】
{120, 181}, // 232 → 【233】
{122, 181}, // 233 → 【234】
{124, 181}, // 234 → 【235】
{156, 124}, // 235 → 【236】
{156, 124}, // 236 → 【237】
{156, 124}, // 237 → 【238】
{155, 129}, // 238 → 【239】
{153, 138}, // 239 → 【240】
{151, 143}, // 240 → 【241】
{150, 148}, // 241 → 【242】
{148, 152}, // 242 → 【243】
{148, 155}, // 243 → 【244】
{147, 158}, // 244 → 【245】
{146, 162}, // 245 → 【246】
{145, 165}, // 246 → 【247】
{145, 169}, // 247 → 【248】
{145, 171}, // 248 → 【249】
{145, 173}, // 249 → 【250】
{145, 174}, // 250 → 【251】
{145, 174}, // 251 → 【252】
{145, 174}, // 252 → 【253】
{145, 174}, // 253 → 【254】
{165, 129}, // 254 → 【255】
{166, 134}, // 255 → 【256】
{168, 140}, // 256 → 【257】
{169, 144}, // 257 → 【258】
{171, 150}, // 258 → 【259】
{171, 153}, // 259 → 【260】
{173, 156}, // 260 → 【261】
{173, 160}, // 261 → 【262】
{176, 166}, // 262 → 【263】
{176, 169}, // 263 → 【264】
{177, 171}, // 264 → 【265】
{178, 174}, // 265 → 【266】
{179, 177}, // 266 → 【267】
{180, 179}, // 267 → 【268】
{180, 179}, // 268 → 【269】
{180, 179}, // 269 → 【270】
{180, 179}, // 270 → 【271】
{180, 179}, // 271 → 【272】
{180, 179}, // 272 → 【273】
{182, 176}, // 273 → 【274】
{184, 171}, // 274 → 【275】
{188, 161}, // 275 → 【276】
{191, 152}, // 276 → 【277】
{193, 145}, // 277 → 【278】
{194, 138}, // 278 → 【279】
{196, 132}, // 279 → 【280】
{197, 127}, // 280 → 【281】
{199, 124}, // 281 → 【282】
{199, 121}, // 282 → 【283】
{200, 118}, // 283 → 【284】
{200, 118}, // 284 → 【285】
{201, 118} // 285 → 【286】
int coord[138][2] = {{12, 84}, {12, 84}, {13, 84}, {17, 84}, {19, 84}, {22, 84}, {26, 84}, {32, 84}, {37, 84}, {42, 84}, {45, 84}, {47, 83}, {49, 83}, {49, 83}, {49, 83}, {29, 91}, {29, 91}, {29, 91}, {29, 93}, {29, 97}, {30, 101}, {30, 105}, {30, 111}, {30, 117}, {30, 123}, {30, 129}, {30, 132}, {30, 134}, {30, 135}, {30, 135}, {30, 135}, {30, 135}, {30, 135}, {99, 102}, {98, 101}, {97, 101}, {95, 100}, {95, 100}, {95, 100}, {94, 100}, {92, 100}, {90, 100}, {88, 101}, {85, 104}, {83, 107}, {81, 109}, {79, 114}, {79, 117}, {78, 121}, {78, 123}, {78, 127}, {78, 128}, {79, 129}, {80, 129}, {85, 128}, {89, 127}, {94, 125}, {101, 121}, {104, 118}, {107, 115}, {108, 113}, {109, 110}, {109, 107}, {109, 103}, {109, 101}, {109, 101}, {109, 101}, {109, 101}, {109, 103}, {109, 105}, {108, 109}, {108, 113}, {108, 119}, {108, 121}, {109, 125}, {109, 127}, {111, 129}, {113, 131}, {114, 131}, {115, 131}, {117, 131}, {118, 131}, {119, 131}, {141, 97}, {141, 97}, {142, 99}, {142, 105}, {142, 111}, {141, 116}, {140, 123}, {139, 127}, {139, 129}, {139, 131}, {139, 132}, {139, 132}, {139, 132}, {138, 132}, {138, 129}, {139, 124}, {142, 117}, {144, 109}, {145, 105}, {147, 101}, {147, 99}, {148, 97}, {149, 97}, {151, 97}, {153, 97}, {155, 97}, {156, 96}, {158, 96}, {159, 97}, {160, 97}, {161, 100}, {162, 103}, {163, 106}, {163, 110}, {163, 113}, {163, 117}, {163, 119}, {163, 122}, {163, 123}, {164, 125}, {164, 127}, {164, 128}, {164, 129}, {164, 131}, {164, 131}, {164, 133}, {164, 133}, {165, 134}, {165, 135}, {165, 135}, {191, 136}, {191, 136}, {191, 136}, {191, 136}, {191, 136}
};
// 绘制测试图案
// 画两条边缘线和一个中心点
@ -618,14 +332,15 @@ void app_main(void)
ESP_ERROR_CHECK(esp_lcd_panel_invert_color(panel_handle, false));
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true));
printf("Display simple pattern");
//printf("Display simple pattern");
lcd_init();
buffer_mutex = xSemaphoreCreateRecursiveMutex();
assert(buffer_mutex);
lcd_paint_brush(100,100,10,1);
lcd_display(panel_handle);
vTaskDelay(pdMS_TO_TICKS(10));
// Start background LCD refresh task (50Hz)
xTaskCreate(lcd_task, "lcd_task", 4096, panel_handle, 5, NULL);
@ -633,7 +348,7 @@ void app_main(void)
xTaskCreate(lcd_coord_anim_task, "lcd_coord", 4096, NULL, 5, NULL);
// Immediate initial refresh
lcd_display(panel_handle);
//lcd_anim_test(panel_handle);
/*
lcd_init();