diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..172090d --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.pio +.pioenvs +.piolibdeps +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/settings.json +.vscode/ipch/ +*.code-workspace +src/myWifi.h + diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..272828b --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ] +} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..bbed4dc --- /dev/null +++ b/platformio.ini @@ -0,0 +1,24 @@ +; 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:esp32doit-devkit-v1] +platform = espressif32 +board = esp32doit-devkit-v1 +framework = arduino + +lib_deps = + PubSubClient + Adafruit GFX Library + ; needed by ili9341.h + Adafruit ILI9341 + ; needed by bluetft.h + Adafruit ST7735 and ST7789 Library + +monitor_speed = 115200 diff --git a/Esp32_radio/Dummytft.h b/src/Dummytft.h similarity index 100% rename from Esp32_radio/Dummytft.h rename to src/Dummytft.h diff --git a/Esp32_radio/Esp32_radio.ino b/src/Esp32_radio.ino.cpp similarity index 99% rename from Esp32_radio/Esp32_radio.ino rename to src/Esp32_radio.ino.cpp index 6a1c537..9164f5e 100644 --- a/Esp32_radio/Esp32_radio.ino +++ b/src/Esp32_radio.ino.cpp @@ -2499,6 +2499,8 @@ bool do_software_update ( uint32_t clength ) return res ; } +// forward reference +void scan_content_length ( const char* metalinebf ); //************************************************************************************************** // U P D A T E _ S O F T W A R E * @@ -5713,4 +5715,4 @@ void spftask ( void * parameter ) } //vTaskDelete ( NULL ) ; // Will never arrive here } - + diff --git a/Esp32_radio/ILI9341.h b/src/ILI9341.h similarity index 100% rename from Esp32_radio/ILI9341.h rename to src/ILI9341.h diff --git a/Esp32_radio/LCD1602.h b/src/LCD1602.h similarity index 100% rename from Esp32_radio/LCD1602.h rename to src/LCD1602.h diff --git a/Esp32_radio/NEXTION.h b/src/NEXTION.h similarity index 100% rename from Esp32_radio/NEXTION.h rename to src/NEXTION.h diff --git a/Esp32_radio/SSD1306.h b/src/SSD1306.h similarity index 100% rename from Esp32_radio/SSD1306.h rename to src/SSD1306.h diff --git a/Esp32_radio/about_html.h b/src/about_html.h similarity index 100% rename from Esp32_radio/about_html.h rename to src/about_html.h diff --git a/Esp32_radio/bluetft.h b/src/bluetft.h similarity index 100% rename from Esp32_radio/bluetft.h rename to src/bluetft.h diff --git a/Esp32_radio/config_html.h b/src/config_html.h similarity index 100% rename from Esp32_radio/config_html.h rename to src/config_html.h diff --git a/Esp32_radio/defaultprefs.h b/src/defaultprefs.h similarity index 100% rename from Esp32_radio/defaultprefs.h rename to src/defaultprefs.h diff --git a/Esp32_radio/favicon_ico.h b/src/favicon_ico.h similarity index 100% rename from Esp32_radio/favicon_ico.h rename to src/favicon_ico.h diff --git a/Esp32_radio/index_html.h b/src/index_html.h similarity index 100% rename from Esp32_radio/index_html.h rename to src/index_html.h diff --git a/Esp32_radio/mp3play_html.h b/src/mp3play_html.h similarity index 100% rename from Esp32_radio/mp3play_html.h rename to src/mp3play_html.h diff --git a/Esp32_radio/radio_css.h b/src/radio_css.h similarity index 100% rename from Esp32_radio/radio_css.h rename to src/radio_css.h