about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-12-17 12:07:48 -0500
committerZach DeCook <zachdecook@librem.one>2022-12-17 12:07:48 -0500
commitc4441cf4fca4df6bd9c71b0dba4bfedfcf567cba (patch)
treec6ef179cb2fbf706234f94280899e70c9ba60d74 /Makefile
parent93db8d35a298a24d9fb853b539de73598e38ec65 (diff)
downloadHexBoard-c4441cf4fca4df6bd9c71b0dba4bfedfcf567cba.tar.gz
Makefile: Make this functional (at least, on Linux for Zach)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 11efd6c..110b398 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,8 @@
-# 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	
+# Copied fqbn from build.options.json
+build/HexBoard_V1.1.ino.uf2: HexBoard_V1.1.ino
+	arduino-cli compile -b rp2040:rp2040:generic:flash=16777216_0,freq=133,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=tinyusb,ipstack=ipv4only,boot2=boot2_generic_03h_2_padded_checksum --output-dir build	
 
-install: build/HexBoard_V1.ino.hex
-	echo "Waiting to install, maybe press program-mode button?"
-	teensy_loader_cli -w --mcu=TEENSYLC build/HexBoard_V1.ino.hex
+install: build/HexBoard_V1.1.ino.uf2
+	echo "Trying to copy into mounted device"
+	cp build/HexBoard_V1.1.ino.uf2 /run/media/zach/RPI-RP2/
 	echo "Installed."