Skip to content

Commit

Permalink
[MOD] project initialization scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeCarlini committed Mar 1, 2022
1 parent d4a2deb commit c493278
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
17 changes: 10 additions & 7 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
8 changes: 4 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions post_init_hook.py
Original file line number Diff line number Diff line change
@@ -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))
7 changes: 0 additions & 7 deletions pre_init_hook.py

This file was deleted.

0 comments on commit c493278

Please sign in to comment.