diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..c6bd273 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,8 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) +# and commit this file to your remote git repository to share the goodness with others. + +tasks: + - init: make install + + diff --git a/Makefile b/Makefile index a6b0aa1..7a6bab5 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ +PIO ?= /home/gitpod/.platformio/penv/bin/platformio +install: + python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)" + init: curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/master/scripts/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules sudo udevadm control --reload-rules sudo udevadm trigger build: - pio run -e build + $(PIO) run -e build flash: - pio run -e build -t upload \ No newline at end of file + $(PIO) run -e build -t upload \ No newline at end of file