Skip to content

Commit

Permalink
TinyFX: Add picofx lib into user flash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jul 29, 2024
1 parent 22979af commit bd97ea3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/micropython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
RELEASE_FILE: pimoroni-${{matrix.shortname}}-${{github.event.release.tag_name || github.sha}}-micropython.uf2
RELEASE_FILE_WITH_OS: pimoroni-${{matrix.shortname}}-${{github.event.release.tag_name || github.sha}}-micropython-with-examples.uf2
FIRMWARE_DIR: "$GITHUB_WORKSPACE/picofx/boards"
ROOT_DIR: "$GITHUB_WORKSPACE/picofx"
BOARD_DIR: "$GITHUB_WORKSPACE/picofx/boards/${{matrix.board}}"
EXAMPLES_DIR: "$GITHUB_WORKSPACE/picofx/examples/${{matrix.shortundername}}"

Expand Down Expand Up @@ -156,6 +157,12 @@ jobs:
run: |
python3 py_decl/py_decl.py --to-json --verify micropython/ports/rp2/build/${{ env.RELEASE_FILE }}
- name: "HACK: Mangle PicoFX Lib into user filesystem"
shell: bash
run: |
mkdir -p ${{env.EXAMPLES_DIR}}/lib
cp -r ${{env.ROOT_DIR}}/picofx ${{env.EXAMPLES_DIR}}/lib
- name: Append Filesystem
shell: bash
run: |
Expand Down
3 changes: 2 additions & 1 deletion boards/PIMORONI_TINYFX/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

freeze("lib/")

package("picofx", base_path="../../")
# TODO: Convince Chris this is the one true and holy path
# package("picofx", base_path="../../")
5 changes: 4 additions & 1 deletion examples/tiny_fx/uf2-manifest.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
main.py
effects/*.py
showcase/*.py
showcase/*.py
lib/picofx/*.py
lib/picofx/colour/*.py
lib/picofx/mono/*.py

0 comments on commit bd97ea3

Please sign in to comment.