diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 0f0d740..080e70d 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,10 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ] -} +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ], + "unwantedRecommendations": [ + "ms-vscode.cpptools-extension-pack" + ] +} diff --git a/platformio.ini b/platformio.ini index 6e995cd..25e5743 100644 --- a/platformio.ini +++ b/platformio.ini @@ -5,7 +5,7 @@ framework = arduino upload_port = /dev/ttyUSB* monitor_speed = 115200 lib_deps = - bodmer/TFT_eSPI @ ^2.3.59 - adafruit/Adafruit TouchScreen @ ^1.1.2 - 4-20ma/ModbusMaster @ ^2.0.1 -extra_scripts = pre:pre_init_hook.py + bodmer/TFT_eSPI @ 2.4.40 + adafruit/Adafruit TouchScreen @ 1.1.2 + 4-20ma/ModbusMaster @ 2.0.1 +extra_scripts = post:post_init_hook.py \ No newline at end of file diff --git a/post_init_hook.py b/post_init_hook.py new file mode 100644 index 0000000..796fba4 --- /dev/null +++ b/post_init_hook.py @@ -0,0 +1,6 @@ +import shutil +from pathlib import Path + +dest_path = './.pio/libdeps/esp32dev/TFT_eSPI/User_Setup.h' +if Path(dest_path).exists(): + shutil.copy(Path('./include/ILI9486_DRIVER.h'), Path(dest_path)) diff --git a/pre_init_hook.py b/pre_init_hook.py deleted file mode 100644 index 393396c..0000000 --- a/pre_init_hook.py +++ /dev/null @@ -1,7 +0,0 @@ -import shutil -from pathlib import Path - -dest_path = './.pio/libdeps/esp32dev/TFT_eSPI/User_Setup.h' -if not Path(dest_path).exists(): - exit() -shutil.copy(Path('./include/ILI9486_DRIVER.h'), Path(dest_path))