Basic project setup

This commit is contained in:
Mark van Renswoude 2020-01-11 12:28:42 +01:00
parent e6d3ad9e78
commit 2ff37d5991
6 changed files with 41 additions and 0 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
.pioenvs
.piolibdeps
*.kicad_pcb-bak *.kicad_pcb-bak
*.sublime-workspace

View File

@ -0,0 +1,9 @@
{
"folders":
[
{
"path": ".",
"file_exclude_patterns": ["*.sublime-project"]
}
]
}

1
build.ps1 Normal file
View File

@ -0,0 +1 @@
& platformio run

23
platformio.ini Normal file
View File

@ -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

4
src/main.cpp Normal file
View File

@ -0,0 +1,4 @@
int main()
{
return 0;
}

1
upload.ps1 Normal file
View File

@ -0,0 +1 @@
& platformio run --target upload