From 3d68f483ce9a4493d213c1c81dc279ee015c0896 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Mon, 27 Nov 2017 15:28:00 +0100 Subject: [PATCH] PlatformIO folder structure Moved and renamed files, not compiled yet --- .gitignore | 1 + UVControl.sublime-project | 9 +++++++++ build.ps1 | 1 + platformio.ini | 20 +++++++++++++++++++ Buzzer.cpp => src/Buzzer.cpp | 0 Buzzer.h => src/Buzzer.h | 0 Config.cpp => src/Config.cpp | 0 Config.h => src/Config.h | 0 ExposureTimer.cpp => src/ExposureTimer.cpp | 0 ExposureTimer.h => src/ExposureTimer.h | 0 .../ScreenCountdown.cpp | 0 ScreenCountdown.h => src/ScreenCountdown.h | 0 ScreenManager.cpp => src/ScreenManager.cpp | 0 ScreenManager.h => src/ScreenManager.h | 0 ScreenMenu.cpp => src/ScreenMenu.cpp | 0 ScreenMenu.h => src/ScreenMenu.h | 0 ScreenSetTime.cpp => src/ScreenSetTime.cpp | 0 ScreenSetTime.h => src/ScreenSetTime.h | 0 UVControl.ino => src/main.cpp | 0 upload.ps1 | 1 + 20 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 UVControl.sublime-project create mode 100644 build.ps1 create mode 100644 platformio.ini rename Buzzer.cpp => src/Buzzer.cpp (100%) rename Buzzer.h => src/Buzzer.h (100%) rename Config.cpp => src/Config.cpp (100%) rename Config.h => src/Config.h (100%) rename ExposureTimer.cpp => src/ExposureTimer.cpp (100%) rename ExposureTimer.h => src/ExposureTimer.h (100%) rename ScreenCountdown.cpp => src/ScreenCountdown.cpp (100%) rename ScreenCountdown.h => src/ScreenCountdown.h (100%) rename ScreenManager.cpp => src/ScreenManager.cpp (100%) rename ScreenManager.h => src/ScreenManager.h (100%) rename ScreenMenu.cpp => src/ScreenMenu.cpp (100%) rename ScreenMenu.h => src/ScreenMenu.h (100%) rename ScreenSetTime.cpp => src/ScreenSetTime.cpp (100%) rename ScreenSetTime.h => src/ScreenSetTime.h (100%) rename UVControl.ino => src/main.cpp (100%) create mode 100644 upload.ps1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c51a0ea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.sublime-workspace \ No newline at end of file diff --git a/UVControl.sublime-project b/UVControl.sublime-project new file mode 100644 index 0000000..b01586b --- /dev/null +++ b/UVControl.sublime-project @@ -0,0 +1,9 @@ +{ + "folders": + [ + { + "path": ".", + "file_exclude_patterns": ["*.sublime-project"] + } + ] +} \ No newline at end of file diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..c2fb43d --- /dev/null +++ b/build.ps1 @@ -0,0 +1 @@ +& platformio run \ No newline at end of file diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..557489b --- /dev/null +++ b/platformio.ini @@ -0,0 +1,20 @@ +; 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 +; http://docs.platformio.org/page/projectconf.html + +[env:attiny85] +platform = atmelavr +board = atmega328p +framework = arduino +upload_protocol = stk500v1 +upload_flags = -P$UPLOAD_PORT -b$UPLOAD_SPEED +board_f_cpu = 1000000L + +upload_port = COM7 +upload_speed = 19200 \ No newline at end of file diff --git a/Buzzer.cpp b/src/Buzzer.cpp similarity index 100% rename from Buzzer.cpp rename to src/Buzzer.cpp diff --git a/Buzzer.h b/src/Buzzer.h similarity index 100% rename from Buzzer.h rename to src/Buzzer.h diff --git a/Config.cpp b/src/Config.cpp similarity index 100% rename from Config.cpp rename to src/Config.cpp diff --git a/Config.h b/src/Config.h similarity index 100% rename from Config.h rename to src/Config.h diff --git a/ExposureTimer.cpp b/src/ExposureTimer.cpp similarity index 100% rename from ExposureTimer.cpp rename to src/ExposureTimer.cpp diff --git a/ExposureTimer.h b/src/ExposureTimer.h similarity index 100% rename from ExposureTimer.h rename to src/ExposureTimer.h diff --git a/ScreenCountdown.cpp b/src/ScreenCountdown.cpp similarity index 100% rename from ScreenCountdown.cpp rename to src/ScreenCountdown.cpp diff --git a/ScreenCountdown.h b/src/ScreenCountdown.h similarity index 100% rename from ScreenCountdown.h rename to src/ScreenCountdown.h diff --git a/ScreenManager.cpp b/src/ScreenManager.cpp similarity index 100% rename from ScreenManager.cpp rename to src/ScreenManager.cpp diff --git a/ScreenManager.h b/src/ScreenManager.h similarity index 100% rename from ScreenManager.h rename to src/ScreenManager.h diff --git a/ScreenMenu.cpp b/src/ScreenMenu.cpp similarity index 100% rename from ScreenMenu.cpp rename to src/ScreenMenu.cpp diff --git a/ScreenMenu.h b/src/ScreenMenu.h similarity index 100% rename from ScreenMenu.h rename to src/ScreenMenu.h diff --git a/ScreenSetTime.cpp b/src/ScreenSetTime.cpp similarity index 100% rename from ScreenSetTime.cpp rename to src/ScreenSetTime.cpp diff --git a/ScreenSetTime.h b/src/ScreenSetTime.h similarity index 100% rename from ScreenSetTime.h rename to src/ScreenSetTime.h diff --git a/UVControl.ino b/src/main.cpp similarity index 100% rename from UVControl.ino rename to src/main.cpp diff --git a/upload.ps1 b/upload.ps1 new file mode 100644 index 0000000..9b3c625 --- /dev/null +++ b/upload.ps1 @@ -0,0 +1 @@ +& platformio run --target upload \ No newline at end of file