Skip to content

Commit

Permalink
updated with new samples
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Apr 3, 2024
1 parent 499a720 commit 2a929b5
Show file tree
Hide file tree
Showing 40 changed files with 16,475 additions and 16,447 deletions.
25,140 changes: 12,565 additions & 12,575 deletions assets/hex/microcode-en.hex

Large diffs are not rendered by default.

7,657 changes: 3,831 additions & 3,826 deletions assets/js/binary-en.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/strings/en/tooltips.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"S12": "dial",
"S16": "moisture",
"S17": "distance",
"S18": "reflected light",
"S18": "line",
"rule": "rule",
"add_rule": "add rule",
"delete_rule": "delete rule",
Expand Down
2 changes: 1 addition & 1 deletion binlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace jacs {
000000001400000000000100090000002d0004f9010104f901f4413b04a69003184b394b`
if (idx == 9 || idx == "reflected")
return hex`
0000000018000000000001000a0000002d0004f9010104f901f4413b04f9010190034b394b000000`
0000000018000000000001000a0000002d0004f9010104f901f441913b04f9010190032c4b394b00`
if (idx == 10 || idx == "magnet_1_to_5")
return hex`
0000000020000000010001000b0000002d0004f9010104f901f4413b04f590030d4f009401002618911a4b394b
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing_page_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing_page_1_rule_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing_page_1_rule_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing_page_1_rule_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing_page_1_rule_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing_page_1_rule_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/generated/sample_railroad_crossing_page_1_rule_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/generated/sample_start_top_servo.png
106 changes: 67 additions & 39 deletions docs/images/generated/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,272 +3,300 @@
## new program

- ![new program icon](./images/generated/icon_sample_new program.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSHd1cgwEYkdbWwAQ71lwEAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSHd1cgwEYkdbWwAQ71lwEAAAAA==)



## smiley buttons

- ![smiley buttons icon](./images/generated/icon_sample_smiley buttons.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSC/x8vF2Mk/XTnfMdypxdSp39AkOzs12NsgvzvcodnErd09PLQ8odwws8fZOTHZyDHQFYkdbAJiXpWQ8AAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSC/x8vF2Mk/XTnfMdypxdSp39AkOzs12NsgvzvcodnErd09PLQ8odwws8fZOTHZyDHQFYkdbAJiXpWQ8AAAA)



## first program


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSC/x8vF2ckxPTXd0NsguyC93dXIMBGJHW1sA1hV+qyAAAAA=)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSC/x8vF2ckxPTXd0NsguyC93dXIMBGJHW1sA1hV+qyAAAAA=)



## flashing heart

- ![flashing heart icon](./images/generated/icon_sample_flashing heart.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDcpzvcucA8KdE4PdMl2dnQ0Kcgvd3VyDARiR1tbAKuT4uEkAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDcpzvcucA8KdE4PdMl2dnQ0Kcgvd3VyDARiR1tbAKuT4uEkAAAA)



## counter


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSC/x8vU2SnKt8i9xrczNcQx0dQJiRwAo4T5FHAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSC/x8vU2SnKt8i9xrczNcQx0dQJiRwAo4T5FHAAAAA==)



## times table


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDdM9E1yT82rCCwvSi/x8vU2KnWt8i9xrczNcQx0dQJiRwAc3apXKAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDdM9E1yT82rCCwvSi/x8vU2KnWt8i9xrczNcQx0dQJiRwAc3apXKAAAAA==)



## double counter


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vKHDMryoKLPHy9TZKcq3yL3E2yM/PKXf19k4M9fY1M/EJznIvza0IrCpKL/Hy9op0cgx0dXJ0tLUFAMNwwdxAAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vKHDMryoKLPHy9TZKcq3yL3E2yM/PKXf19k4M9fY1M/EJznIvza0IrCpKL/Hy9op0cgx0dXJ0tLUFAMNwwdxAAAAA)



## pet hamster

- ![pet hamster icon](./images/generated/icon_sample_pet hamster.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vznd3dHEqd/QJCa5MD/T0yHf0dkp3LE92LC4wAIrlZrmEAdW4Ojq5lbunRzr6ejj6eKcAxQoKyl2dHAOB2NHWFgC6EFBsTAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vznd3dHEqd/QJCa5MD/T0yHf0dkp3LE92LC4wAIrlZrmEAdW4Ojq5lbunRzr6ejj6eKcAxQoKyl2dHAOB2NHWFgC6EFBsTAAAAA==)



## head or tail

- ![head or tail icon](./images/generated/icon_sample_head or tail.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDcoL44q9/M29zPxDQmvSnV0dXQ1MCnO97HUNi13DAmprEwPsEgycQx0dQJjR1tbAAk3aEg4AAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDcoL44q9/M29zPxDQmvSnV0dXQ1MCnO97HUNi13DAmprEwPsEgycQx0dQJjR1tbAAk3aEg4AAAA)



## rock, paper, scissors

- ![rock, paper, scissors icon](./images/generated/icon_sample_rock_ paper_ scissors.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDdM9PVxT3EJyy8odPLz9/F2BIN8X0dTp3LHkJDKynSwgLejfkVZupOroWNxPljAOT3ZFMgLdHUCY0dbWwCWc5fKUAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDdM9PVxT3EJyy8odPLz9/F2BIN8X0dTp3LHkJDKynSwgLejfkVZupOroWNxPljAOT3ZFMgLdHUCY0dbWwCWc5fKUAAAAA==)



## hot potato

- ![hot potato icon](./images/generated/icon_sample_hot potato.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDcNDwsLzc8pNynOd3QMdHR0TncEA1dvH29n/bTSZEfnzNw8x0BXJ6CsLQBMXzeLNAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDcNDwsLzc8pNynOd3QMdHR0TncEA1dvH29n/bTSZEfnzNw8x0BXJ6CsLQBMXzeLNAAAAA==)



## clap lights

- ![clap lights icon](./images/generated/icon_sample_clap lights.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vzg/Q19cvd/X2TgwNDqvMjHAMBIo5ggFQrBwkFu4Y6OrkGOhoCwCBSrYdNAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vzg/Q19cvd/X2TgwNDqvMjHAMBIo5ggFQrBwkFu4Y6OrkGOhoCwCBSrYdNAAAAA==)



## 24 7 clap


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAAxXLWwqDMBBG4U21pS99mKYWK1IdghE3YBiJ/OMFI1m9+ng4fEUvtvZQZcQxYkE26czGD5+8pvJnXTLrGO+t+zLC/rdNKGwj0hFDEZFmPp9Ie7Vevnw+bmT8lpCfvnKhQ/DZm5heB1rtfyFsAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAAxXLWwqDMBBG4U21pS99mKYWK1IdghE3YBiJ/OMFI1m9+ng4fEUvtvZQZcQxYkE26czGD5+8pvJnXTLrGO+t+zLC/rdNKGwj0hFDEZFmPp9Ie7Vevnw+bmT8lpCfvnKhQ/DZm5heB1rtfyFsAAAA)



## reaction time

- ![reaction time icon](./images/generated/icon_sample_reaction time.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA0XNsQ4CIRAE0E/CQhObK+ZwC1gKCEFDaXMrEbPFmVz8e/Eap5uXScYvLUfRVQEHWMEMgPeCVU63656ifXt79s+QW6tIYx+NMRsx30vIuVV7UH0l4sAzRSKoexxF7OfSq3b5OWgpabg7u7+Pt2n6Ag85NmCEAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA0XNsQ4CIRAE0E/CQhObK+ZwC1gKCEFDaXMrEbPFmVz8e/Eap5uXScYvLUfRVQEHWMEMgPeCVU63656ifXt79s+QW6tIYx+NMRsx30vIuVV7UH0l4sAzRSKoexxF7OfSq3b5OWgpabg7u7+Pt2n6Ag85NmCEAAAA)



## chuck a duck

- ![chuck a duck icon](./images/generated/icon_sample_chuck a duck.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDdM9PF2dHR1dHR0Ccsvya1w8/fxdslNdUx2dA01KSgIdHVyBGFHW1sAM4crzDAAAAA=)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDdM9PF2dHR1dHR0Ccsvya1w8/fxdslNdUx2dA01KSgIdHVyBGFHW1sAM4crzDAAAAA=)



## zombie detector


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAAx3JQQqAIBRF0SXVIKLp036DFEyLqBaQCMoPJNp+1h3eM55hnnyTGbCA9BY0QMFBQJT35ZYQNlnXnEBGK0lEABNfxc0qU+rjztH/Vpm7mO5a8cDoIwtYwguSR2VFZAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAAx3JQQqAIBRF0SXVIKLp036DFEyLqBaQCMoPJNp+1h3eM55hnnyTGbCA9BY0QMFBQJT35ZYQNlnXnEBGK0lEABNfxc0qU+rjztH/Vpm7mO5a8cDoIwtYwguSR2VFZAAAAA==)



## firefly

- ![firefly icon](./images/generated/icon_sample_firefly.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vznd0DHR0dAzy9TZKcsnxLS+KKg4JdfPMzyk3DQ1zCwTSrt4+gfnlueVAtQH6ZfpAvndiqH9oZWa4Y6CrE1C3LQB1rjwqTAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vznd0DHR0dAzy9TZKcsnxLS+KKg4JdfPMzyk3DQ1zCwTSrt4+gfnlueVAtQH6ZfpAvndiqH9oZWa4Y6CrE1C3LQB1rjwqTAAAAA==)



## railroad crossing

- ![railroad crossing icon](./images/generated/icon_sample_railroad crossing.png){:class="icon-sample"}
- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSC/x8osq9gkO1jYqNff0Cc4KT3M2yC8r9SmtdDYwKCvz8XRyDHQFYkdbAHgy7WkwAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM83rnIs8fKLKvYJDtY2KjX39AnOCk9zNsgvK/UprXQ2MCgr8/F0cgx0BWJHWwCQ8rdkNAAAAA==)



## moves


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDdM9vF2zCuICHR0CSsuznfOzbF0dPSLCK5M94wMKXd0NEwFyedFgeTzgfIWFkB5J8dAVyB2tAUAyWkUeEQAAAA=)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDdM9vF2zCuICHR0CSsuznfOzbF0dPSLCK5M94wMKXd0NEwFyedFgeTzgfIWFkB5J8dAVyB2tAUAyWkUeEQAAAA=)



## coins


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSC/x8vUq9gnOci7JrfAL9PF2TE0uTXdyNXQtzne2sEhxdAwJzaxML0tJSnQMdHUCY0dbWwBqQEfyPAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSC/x8vUq9gnOci7JrfAL9PF2TE0uTXdyNXQtzne2sEhxdAwJzaxML0tJSnQMdHUCY0dbWwBqQEfyPAAAAA==)



## inchworm


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM83zC03DQmtzIxwDMw3zIOwwx0DXZ0cAx1tAXSWV7AkAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM83zC03DQmtzIxwDMw3zIOwwx0DXZ0cAx1tAXSWV7AkAAAA)



## head guess


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAAxXM0QrCIBQA0F/aYI1e75wEc7ZdEjPfipUIktKNOf++9nzgDC9/mV1MCWMmWwlp6Wx6tr2xfsjxtPSatk+iSQd71d4bXjUUJ3voMihVihsblUHAulqEOBwRHSu8BorsGRZgbmxNtft3RiDHhWwbIe7y/91icLwD5PADIeC5koQAAAA=)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAAxXM0QrCIBQA0F/aYI1e75wEc7ZdEjPfipUIktKNOf++9nzgDC9/mV1MCWMmWwlp6Wx6tr2xfsjxtPSatk+iSQd71d4bXjUUJ3voMihVihsblUHAulqEOBwRHSu8BorsGRZgbmxNtft3RiDHhWwbIe7y/91icLwD5PADIeC5koQAAAA=)



## battery charger prank


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vznc1KTANdE4PyczNcfTx9AvPzIxwDEQWz8tz9Hby909Ndsz3NTE1LXeudMmJzM9Jd3VyDHR1BAAZa74ISAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vznc1KTANdE4PyczNcfTx9AvPzIxwDEQWz8tz9Hby909Ndsz3NTE1LXeudMmJzM9Jd3VyDHR1BAAZa74ISAAAAA==)



## green light red light


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAAxWM2w6CIBiAHynb9AF+CddAjprlpWMLqYxNWIyePrr+DuTuBmkjp8ToMbsZuWybib2Bnp44GfBS3daEMnLbC5RPW6rjriJhJPTDAxlc1cGLaSQJ2aZl59JVXW0grFz2tNVYX1pQx4Uuhl/L+/PdLVB0EPbvdIKSuXAMP5a2TTmIAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAAxWM2w6CIBiAHynb9AF+CddAjprlpWMLqYxNWIyePrr+DuTuBmkjp8ToMbsZuWybib2Bnp44GfBS3daEMnLbC5RPW6rjriJhJPTDAxlc1cGLaSQJ2aZl59JVXW0grFz2tNVYX1pQx4Uuhl/L+/PdLVB0EPbvdIKSuXAMP5a2TTmIAAAA)



## crooked head or tail


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDcoL44y8PNOTA8JyaxMLzM2z3N08gvw8XbUryhLd3I1dCzOd9F313Z0dXIMBGFHWwCZlW4AOAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDcoL44y8PNOTA8JyaxMLzM2z3N08gvw8XbUryhLd3I1dCzOd9F313Z0dXIMBGFHWwCZlW4AOAAAAA==)



## step counter


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSDdM9PU2SnKt8i9xrczNcQx0dQJiRwBim90NHAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSDdM9PU2SnKt8i9xrczNcQx0dQJiRwBim90NHAAAAA==)



## clap counter


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOyPCK8PU2SnKt8i9xDHR1AmJHAO6A3EEYAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOyPCK8PU2SnKt8i9xDHR1AmJHAO6A3EEYAAAA)



## random counter


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSC/x8vUqrcgrB9JBvlVFgSXevolmSW5uFsX5rs5OZo6OTo6BrkDsaAsAZLWgejAAAAA=)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSC/x8vUqrcgrB9JBvlVFgSXevolmSW5uFsX5rs5OZo6OTo6BrkDsaAsAZLWgejAAAAA=)



## slider levels


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOyEjx9zUtjgip8k92M3SsygtKCfI1NYkIzfJPcwx0dQJiRwDRxewIKAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOyEjx9zUtjgip8k92M3SsygtKCfI1NYkIzfJPcwx0dQJiRwDRxewIKAAAAA==)



## light levels


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSLf09zUtDgip8k92MXSsygu0DPI1NQkIzfJPcwx0dQJiRwClU1HSKAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSLf09zUtDgip8k92MXSsygu0DPI1NQkIzfJPcwx0dQJiRwClU1HSKAAAAA==)



## magnet levels


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOyIjy9zUtDg+p8k92y3GsyguKCvI1NQkPzfJPcwx0dQJiRwDn/nTMKAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOyIjy9zUtDg+p8k92y3GsyguKCvI1NQkPzfJPcwx0dQJiRwDn/nTMKAAAAA==)



## count turns


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOyMjI9PU2SnJ3960oKigO8TUzCPU1M3FyDHQFYkdbAKde5cMkAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOyMjI9PU2SnJ3960oKigO8TUzCPU1M3FyDHQFYkdbAKde5cMkAAAA)



## key demo


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vznd0DHR0dPQJrqxMD/T0AHJLfH28nRwdg5KdHANdQdgRAO3GOg8sAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vznd0DHR0dPQJrqxMD/T0AHJLfH28nRwdg5KdHANdQdgRAO3GOg8sAAAA)



## robot shake


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vzQs0TPbzMfELrwpxdgkzMCj39fSLyApxKk93dXIMBGJHW1sAL0cDWSwAAAA=)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vzQs0TPbzMfELrwpxdgkzMCj39fSLyApxKk93dXIMBGJHW1sAL0cDWSwAAAA=)



## robot wake


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vzQvyNCj3dXEsT3d1cgwEYkdbWwANMyPqHAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vzQvyNCj3dXEsT3d1cgwEYkdbWwANMyPqHAAAAA==)



## robot avoid wall


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vzQvMNyjLyAnw83XWdgx0dQJiRwDDSNcqHAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vzQvMNyjLyAnw83XWdgx0dQJiRwDDSNcqHAAAAA==)



## robot line follow


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vza0oyPfzMUmMygpxdM9NNigPKij08w1MTKwKcXPPzTYoT3d1cgwEYkdbWwDmB/bgNAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vza0oyPfzMUmMygpxdM9NNigPKij08w1MTKwKcXPPzTYoT3d1cgwEYkdbWwDmB/bgNAAAAA==)



## robot showcase


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vzS0v8fLzMfd0Nsg3KC+OjAqpCnEtS3d1cgwEYkdbWwD5iYdTKAAAAA==)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vzS0v8fLzMfd0Nsg3KC+OjAqpCnEtS3d1cgwEYkdbWwD5iYdTKAAAAA==)



## robot drift tester


- [Open in MicroCode](/microcode/#H4sIAKs4NWUAA/NKywwOSM8vzS0v8fLzMfd0Nsg3KLdIDvbz9XF3DHR1AmJHABfWvJckAAAA)
- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSM8vzS0v8fLzMfd0Nsg3KLdIDvbz9XF3DHR1AmJHABfWvJckAAAA)



## more water please!


- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOyKjw9ysuTw51SfJzDHR1AmJHAAQ8/EUYAAAA)



## don't stand too close to me!


- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOyDD09zGPTAl11jbzCPMsKyl3dXIMBGJHW1sA6cFXeyAAAAA=)



## start/stop servo


- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOSC/x8rMo9w3OSvNzDHR1AmJHAMEEn4EYAAAA)



## move off the line


- [Open in MicroCode](/microcode/#H4sIAG7eDWYAA/NKywwOyDAt9bMoT02qSvNzDHR1AmJHAOTqqKAYAAAA)


6 changes: 3 additions & 3 deletions jacs_topwriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace jacs {
roleGlobalChanged.write(wr, literal(1))
}
)
} else if (wakeup && wakeup != "NA") {
} else if (wakeup) {
const sensorVar = this.parent.lookupGlobal(
getGlobal(this.classIdentifier, this.index)
)
Expand Down Expand Up @@ -1230,7 +1230,8 @@ namespace jacs {
}
)
} else if (
code != null && (wakeup == null || wakeup == "NA")
code != null && (!wakeup || wakeup == "sound_1_to_5") &&
(rule.filters.length == 0 || this.hasFilterEvent(rule))
) {
const roleEventCode = this.lookupGlobal(
"z_role_code" + role.index
Expand Down Expand Up @@ -1423,7 +1424,6 @@ namespace jacs {

function needsWakeupChanged(classId: number) {
switch (classId) {
case ServiceClass.Accelerometer: return "NA"
case ServiceClass.RotaryEncoder: return "get_rotary"
case ServiceClass.Temperature: return "round_temp"
case ServiceClass.Reflected: return "reflected"
Expand Down
4 changes: 4 additions & 0 deletions samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ namespace microcode {
{
label: "start/stop servo",
b64: "JfiSPgtJN8wMSjfNAQEBAQEA",
},
{
label: "move off the line",
b64: "JfiSPh5uN8webzfNAQEBAQEA",
}
])
}
Expand Down
Loading

0 comments on commit 2a929b5

Please sign in to comment.