diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.pio +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..080e70d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + // 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/README.md b/README.md index 5077dfd..39b77c4 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,6 @@ If you want you can compile the entire project using Arduino, PlatformIO or Expr Complete tutorial on YouTube: [![Ver video aquĆ­](https://img.youtube.com/vi/POUT2R_opDs/0.jpg)](https://youtu.be/POUT2R_opDs) + +## DEVELOPMENT +You can use platformio to develop this project. diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..f65ceeb --- /dev/null +++ b/platformio.ini @@ -0,0 +1,30 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env:T-Display-S3] +platform = espressif32 +board = esp32-s3-devkitc-1 +framework = arduino +platform_packages = + framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.5 +build_flags = + -DLV_LVGL_H_INCLUDE_SIMPLE + -DBOARD_HAS_PSRAM + -DARDUINO_USB_MODE=1 + -DARDUINO_USB_CDC_ON_BOOT=1 +board_build.partitions = default_8MB.csv +board_build.arduino.memory_type = qio_opi +board_build.flash_size = 8MB +board_build.psram_type = opi +lib_deps = + bodmer/TFT_eSPI@^2.5.23 + https://github.com/takkaO/OpenFontRender + bblanchon/ArduinoJson@^6.21.1 + https://github.com/tzapu/WiFiManager.git diff --git a/NerdMinerV2.ino b/src/NerdMinerV2.ino similarity index 97% rename from NerdMinerV2.ino rename to src/NerdMinerV2.ino index d8fbafa..e85dd78 100644 --- a/NerdMinerV2.ino +++ b/src/NerdMinerV2.ino @@ -4,11 +4,12 @@ #include "mbedtls/md.h" #include // Graphics and font library -#include "Lib/images.h" -#include "Lib/myFonts.h" +#include "media/images.h" +#include "media/myFonts.h" #include "OpenFontRender.h" #include "wManager.h" #include "mining.h" +#include "../TFT_setup/User_Setup.h" OpenFontRender render; diff --git a/Lib/Free_Fonts.h b/src/media/Free_Fonts.h similarity index 100% rename from Lib/Free_Fonts.h rename to src/media/Free_Fonts.h diff --git a/Lib/images.h b/src/media/images.h similarity index 100% rename from Lib/images.h rename to src/media/images.h diff --git a/Lib/myFonts.h b/src/media/myFonts.h similarity index 100% rename from Lib/myFonts.h rename to src/media/myFonts.h diff --git a/mining.cpp b/src/mining.cpp similarity index 99% rename from mining.cpp rename to src/mining.cpp index 070dfd0..efd17e2 100644 --- a/mining.cpp +++ b/src/mining.cpp @@ -1,8 +1,8 @@ #include #include #include -#include "Lib/Free_Fonts.h" -#include "Lib/images.h" +#include "media/Free_Fonts.h" +#include "media/images.h" #include "mbedtls/md.h" #include // Graphics and font library for ILI9341 driver chip #include "OpenFontRender.h" diff --git a/mining.h b/src/mining.h similarity index 100% rename from mining.h rename to src/mining.h diff --git a/wManager.cpp b/src/wManager.cpp similarity index 99% rename from wManager.cpp rename to src/wManager.cpp index 80944e2..4e1c295 100644 --- a/wManager.cpp +++ b/src/wManager.cpp @@ -8,7 +8,7 @@ #include #include -#include "Lib/images.h" +#include "media/images.h" #include // Graphics and font library // JSON configuration file diff --git a/wManager.h b/src/wManager.h similarity index 100% rename from wManager.h rename to src/wManager.h