diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cb750b8..16a746c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -13,16 +13,21 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- - name: build OC_teensy40
+ - name: build
run: |
git submodule update --init
- pio run -e OC_teensy40
+ pio run
export hash=$(git rev-parse --short HEAD)
- mv .pio/build/*/firmware.hex ./firmware_OC_T40_$hash.hex
mv .github/workflows/LICENSE.txt ./LICENSE.txt
- zip -j ./firmware_OC_T40_$hash.zip ./firmware_OC_T40_$hash.hex ./LICENSE.txt
- curl -f -X PUT -u ${{ secrets.UPLOAD_KEY }} ${{ secrets.LATEST_DROP_FOLDER }}/firmware_OC_T40_latest.zip --upload-file ./firmware_OC_T40_$hash.zip
- curl -f -X PUT -u ${{ secrets.UPLOAD_KEY }} ${{ secrets.LATEST_DROP_FOLDER }}/firmware_latest.sha -d "$hash"
+ for f in .pio/build/*/*.hex; do
+ FIRMWARE=$(basename $(dirname ${f%.*}))
+ HEX_FILE=./firmware_${FIRMWARE}_$hash.hex
+ ZIP_FILE=./firmware_${FIRMWARE}_$hash.zip
+ mv -v "$f" $HEX_FILE
+ zip -j $ZIP_FILE $HEX_FILE ./LICENSE.txt
+ curl -X PUT -u ${{ secrets.UPLOAD_KEY }} ${{ secrets.LATEST_DROP_FOLDER }}/firmware_${FIRMWARE}_latest.zip --upload-file $ZIP_FILE || true
+ curl -X PUT -u ${{ secrets.UPLOAD_KEY }} ${{ secrets.LATEST_DROP_FOLDER }}/firmware_${FIRMWARE}_latest.sha -d "$hash"
+ done
- name: firmware_artifacts
uses: actions/upload-artifact@v2
with:
diff --git a/.vscode/launch.json b/.vscode/launch.json
deleted file mode 100644
index 01f863b..0000000
--- a/.vscode/launch.json
+++ /dev/null
@@ -1,68 +0,0 @@
-// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY
-//
-// PIO Unified Debugger
-//
-// Documentation: https://docs.platformio.org/page/plus/debugging.html
-// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html
-
-{
- "version": "0.2.0",
- "configurations": [
- {
- "name": "(gdb) Launch",
- "type": "cppdbg",
- "request": "launch",
- "program": "${workspaceFolder}/.test/test.exe",
- "args": [],
- "stopAtEntry": false,
- "cwd": "${workspaceFolder}/.test/",
- "environment": [],
- "externalConsole": false,
- "MIMode": "gdb",
- "setupCommands": [
- {
- "description": "Enable pretty-printing for gdb",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- },
- {
- "description": "Set Disassembly Flavor to Intel",
- "text": "-gdb-set disassembly-flavor intel",
- "ignoreFailures": true
- }
- ]
- },
- {
- "type": "platformio-debug",
- "request": "launch",
- "name": "PIO Debug",
- "executable": "/home/master/git/squares-and-circles/.pio/build/OC_teensy40/firmware.elf",
- "projectEnvName": "OC_teensy40",
- "toolchainBinDir": "/home/master/.platformio/packages/toolchain-gccarmnoneeabi/bin",
- "internalConsoleOptions": "openOnSessionStart",
- "preLaunchTask": {
- "type": "PlatformIO",
- "task": "Pre-Debug"
- }
- },
- {
- "type": "platformio-debug",
- "request": "launch",
- "name": "PIO Debug (skip Pre-Debug)",
- "executable": "/home/master/git/squares-and-circles/.pio/build/OC_teensy40/firmware.elf",
- "projectEnvName": "OC_teensy40",
- "toolchainBinDir": "/home/master/.platformio/packages/toolchain-gccarmnoneeabi/bin",
- "internalConsoleOptions": "openOnSessionStart"
- },
- {
- "type": "platformio-debug",
- "request": "launch",
- "name": "PIO Debug (without uploading)",
- "executable": "/home/master/git/squares-and-circles/.pio/build/OC_teensy40/firmware.elf",
- "projectEnvName": "OC_teensy40",
- "toolchainBinDir": "/home/master/.platformio/packages/toolchain-gccarmnoneeabi/bin",
- "internalConsoleOptions": "openOnSessionStart",
- "loadMode": "manual"
- }
- ]
-}
diff --git a/README.md b/README.md
index c4b5ad9..bb10d33 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,8 @@
When I am asked why I do such projects - my general reply is: I don't know, it makes fun and I like to get deeper understanding of technical things.
Maybe the reason was the chip shortage that makes Eurorack DIY projects tricky at the moment, and I used that to get more involved with coding in the eurorack land.
-At this point, a big thanks to the people behind ornament & crime (o_C), Teensy and specially Mutable Instruments for the inspiring playground and the basis regarding hardware and software for this project.
+At this point, a big thanks to the people behind ornament & crime (o_C) for the inspiring playground and the basis regarding hardware for this project.
+Many thanks also to all those who have worked on the code and algorithms partly reused here and make this treasure trove freely available, especially Mutable Instruments.
## Challenge
@@ -36,7 +37,8 @@ E.g you can chain the mono audio signal from an oscillator machine to the neighb
* [Long press [RIGHT]] enters the I/O-configuration-page.
* [Long press [LEFT] + [RIGHT]] enters the MIDI-settings-page.
* [Long press left or right [ENCODER]] shows the modulation popup
-* [Long press [L-ENCODER] + [R-ENCODER]] saves the patch - will be restored at startup.
+* [Long press [L-ENCODER] + [R-ENCODER]] saves the patch - will be restored at startup
+ - DEBUG: skip restore - press [RIGHT] button while startup ).