Neale Pickett
·
2026-02-23
Makefile
1flash: flash-qtpy
2flash-qtpy: build/qtpy/concertina.bin
3 stty -F /dev/ttyACM0 1200 && sleep 1 # Reset into bootloader
4 bossac --offset=0x2000 -w -v $< -R
5
6build: build/qtpy/concertina.bin
7
8clean:
9 rm -rf build/*
10
11build/%/concertina.bin: cmd/concertina
12 tinygo build -o $@ -target=$* ./$</...
13
14
15flash-test: flash-qtpy-test
16flash-qtpy-test: build/qtpy/bellows-test.bin
17 stty -F /dev/ttyACM0 1200 && sleep 1 # Reset into bootloader
18 bossac --offset=0x2000 -w -v $< -R
19
20build/%/bellows-test.bin: cmd/bellows-test
21 tinygo build -o $@ -target=$* ./$</...