From 2ff37d5991ba16b33972dfd3ee576ea28fe46c4d Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Sat, 11 Jan 2020 12:28:42 +0100 Subject: [PATCH] Basic project setup --- .gitignore | 3 +++ DeskControl.sublime-project | 9 +++++++++ build.ps1 | 1 + platformio.ini | 23 +++++++++++++++++++++++ src/main.cpp | 4 ++++ upload.ps1 | 1 + 6 files changed, 41 insertions(+) create mode 100644 DeskControl.sublime-project create mode 100644 build.ps1 create mode 100644 platformio.ini create mode 100644 src/main.cpp create mode 100644 upload.ps1 diff --git a/.gitignore b/.gitignore index 73b6068..a974556 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ +.pioenvs +.piolibdeps *.kicad_pcb-bak +*.sublime-workspace \ No newline at end of file diff --git a/DeskControl.sublime-project b/DeskControl.sublime-project new file mode 100644 index 0000000..b01586b --- /dev/null +++ b/DeskControl.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..9a40e91 --- /dev/null +++ b/platformio.ini @@ -0,0 +1,23 @@ +; 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:atmega328] +platform = atmelavr +board = pro8MHzatmega328 +framework = arduino + +upload_protocol = usbtiny +upload_flags = -e +upload_speed = 19200 + +board_build.f_cpu = 8000000L + +lib_deps = + Bounce2 diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..b8c1e6e --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,4 @@ +int main() +{ + return 0; +} \ No newline at end of file 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