about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-07-11 17:52:16 -0400
committerZach DeCook <zachdecook@librem.one>2022-07-11 17:52:16 -0400
commit0b7c6656e8f027fd3e86d0a09e41781172d588b3 (patch)
tree8c4f2b04b7132043579e210a3b9a65c3ee391c57
parent166323db7a6e24e8a8fd284764606f0a5855689e (diff)
downloadHexBoard-0b7c6656e8f027fd3e86d0a09e41781172d588b3.tar.gz
makefile: Add this for using new versions of arduino-cli with teensy_loader_cli
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d6eb6c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+# As of arduino-cli 0.24.0, teensy boards are supported
+# from https://www.pjrc.com/teensy/td_156/package_teensy_index.json
+build/HexBoard_V1.ino.hex: HexBoard_V1.ino
+	arduino-cli compile -b teensy:avr:teensyLC --board-options usb=midi --output-dir build	
+
+install: build/HexBoard_V1.ino.hex
+	teensy_loader_cli -w --mcu=TEENSYLC build/HexBoard_V1.ino.hex