Skip to content

Commit

Permalink
feat: Added make command to set arduino back to blink
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Dec 21, 2019
1 parent 10cb9ae commit 5dcd1c6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
help:
@echo "clean Clean up any build files etc"
@echo "install Install the appropriate packages etc"
@echo "lint Lint the code"
@echo "tests Run the tests"
@echo "test-coverage Run the tests and build coverage data"
@echo "blink [board=nano|uno] Flashes blink to the board."
@echo "clean Clean up any build files etc"
@echo "install Install the appropriate packages etc"
@echo "lint Lint the code"
@echo "tests Run the tests"
@echo "test-coverage Run the tests and build coverage data"

blink:
@echo "Wiping board back to blink state"
@avrgirl-arduino flash -f node_modules/avrgirl-arduino/junk/hex/$(BOARD)/Blink.cpp.hex -a $(BOARD)
@echo "Completed"

clean:
rm -rf ./node_modules
Expand Down

0 comments on commit 5dcd1c6

Please sign in to comment.