Skip to content

Commit 9d1a32a

Browse files
committed
Merge branch 'main' of https://github.com/microbit-apps/microcode-v2 into switchPageDebug
2 parents bb66d5b + 0347eee commit 9d1a32a

File tree

5 files changed

+8046
-8026
lines changed

5 files changed

+8046
-8026
lines changed

.github/workflows/makecode-release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contents: write
1212
strategy:
1313
matrix:
14-
node-version: [16.x]
14+
node-version: [18.x]
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
@@ -37,10 +37,9 @@ jobs:
3737
makecode
3838
- name: copy files
3939
run: |
40-
cp ./built/binary.js ./assets/js/binary.js
41-
cp ./built/n3/binary.hex ./assets/microcode.hex
40+
cp ./built/binary.hex ./assets/microcode.hex
4241
- name: upload modified assets
4342
uses: stefanzweifel/git-auto-commit-action@v4
4443
with:
45-
file_pattern: "assets/* _includes/*"
44+
file_pattern: "assets/*"
4645
branch: main

.github/workflows/makecode.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,3 @@ jobs:
3737
- name: build hex file
3838
run: |
3939
makecode
40-
- name: copy files
41-
run: |
42-
cp ./built/binary.hex ./assets/microcode.hex
43-
- name: upload modified assets
44-
uses: stefanzweifel/git-auto-commit-action@v4
45-
with:
46-
file_pattern: "assets/*"
47-
branch: main

assets.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace microcode {
2626
function jacdacImages(name: string | number) {
2727
if (name == Tid.TID_FILTER_KITA_KEY_1) return icondb.kita_key_1
2828
if (name == Tid.TID_FILTER_KITA_KEY_2) return icondb.kita_key_2
29-
if (name == Tid.TID_SENSOR_MAGNET) return icondb.magnet
3029
if (name == Tid.TID_SENSOR_SLIDER) return icondb.kita_slider
3130
if (name == Tid.TID_SENSOR_ROTARY) return icondb.kita_rotary
3231
if (name == Tid.TID_FILTER_ROTARY_LEFT) return icondb.kita_rotary_left
@@ -125,7 +124,7 @@ namespace microcode {
125124
if (name == Tid.TID_MODIFIER_LOOP) return icondb.loop
126125

127126
// variables
128-
127+
if (name == Tid.TID_SENSOR_MAGNET) return icondb.magnet
129128
if (name == Tid.TID_SENSOR_CUP_X_WRITTEN) return icondb.cupXwritten
130129
if (name == Tid.TID_SENSOR_CUP_Y_WRITTEN) return icondb.cupYwritten
131130
if (name == Tid.TID_SENSOR_CUP_Z_WRITTEN) return icondb.cupZwritten

0 commit comments

Comments
 (0)