Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd targets for firmware and testing - lego_film_processor - software for rota…
git clone git://src.adamsgaard.dk/lego_film_processor
Log
Files
Refs
README
LICENSE
---
commit b8909fbc53bfccfb57ef79d9fda901a6a6d8b73d
parent 975747bde9ff5ad4fce8e7fedede0c43a4d28bff
Author: Anders Damsgaard <[email protected]>
Date: Fri, 12 Jul 2019 15:51:09 +0200
Add targets for firmware and testing
Diffstat:
M Makefile | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -1,15 +1,29 @@
OUT = lego_jobo.rcx
+IRTOWER = /dev/ttyUSB0
NQC = nqc
default: $(OUT)
upload: $(OUT:.rcx=.nqc)
- sudo nqc -S/dev/ttyUSB0 -d $<
+ sudo nqc -S$(IRTOWER) -d $<
%.rcx: %.nqc
$(NQC) $<
+upload_firmware: firm0332.lgo
+ sudo nqc -S$(IRTOWER) -firmware $<
+
+%.lgo: %.zip
+ unzip $<
+ touch $@
+
+firm0332.zip:
+ curl -OL http://pbrick.info/wp-content/uploads/2013/10/firm0332.zip
+
+test:
+ sudo nqc -S$(IRTOWER) -raw 5105
+
clean:
$(RM) *.rcx
-.PHONY: clean upload
+.PHONY: clean upload upload_firmware test
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.