Skip to content

Commit 9db74a6

Browse files
committed
more ideas
1 parent 11d8643 commit 9db74a6

2 files changed

Lines changed: 35 additions & 7 deletions

File tree

‎JACDAC_UI.md‎

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,42 @@ Role Manager
6666

6767
## Plan
6868

69-
- add Jacdac experiment option
70-
- add switch to top of left-column when JD packet found over WebUSB
71-
- change the JD sim to have `sim only` mode
72-
- no device twins
73-
- adds simulators automatically
74-
- no UI for adding simulators/blocks/etc.
69+
X keep Jacdac buses separate for simulator and devices
70+
X when in sim, don't accept packets from physical bus
71+
- when in devices, don't accept packets from sims
72+
X add Jacdac experiment option
73+
X add switch to top of left-column
74+
X switch between "sims" and "twins"
75+
X need to revisit the logic here - keep the simdriver intact so
76+
as to keep the jacdac sim live, but turn-off/hide ALL the other sims.
77+
X when JD packet found over WebUSB, enable switch
78+
- we want to have all the roles declared at once rather than dealing with
79+
them one at a time; for now, use a special EndJDClient() method
80+
X change the JD sim to have `sim only` mode
81+
X no device twins
82+
X adds simulators automatically
83+
X no UI for adding simulators/blocks/etc.
7584
- capture the JD configuration after each sim execution
7685
- change the JD sim to have `twin only` mode
7786
- no simulators
7887
- `skeleton` twins for roles that have not been bound
7988
- overflow section for unbound extra modules
89+
- what to do about the editor when in device mode?
90+
- disable with modal instruction
91+
- repurpose?
92+
NO should we attempt to have microbit in device twin mode?
93+
- try to support A/B buttons and LED screen?
94+
- this would require extra code on the micro:bit to send events
95+
and we would only use it for twinning... sigh...
96+
- instead, you can console.log and see it?
97+
98+
ALTERNATIVE UI
99+
- add "Jacdac Simulator" and "Jacdac Devices" buttons, like with serial
100+
- create a "Jacdac Editor" to use full space of toolbox and code canvas
101+
- when in jacdac editor in device mode, disable the microbit sim
102+
103+
BUGS
104+
- keep order as created by program, - don't change order unless program changes
105+
- cache the roles, so when we switch to deviceMode, we have them in hand
106+
X jacdac sims don't all get registered
107+
? too many sims are being created (buttons)

‎targetconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@
469469
"jacdac/pxt-jacdac": {
470470
"simx": {
471471
"sha": "1804c0b3d2976935c476f3b6d425b554a20fa814",
472-
"devUrl": "https://jacdac.github.io/jacdac-docs/tools/makecode-sim/"
472+
"devUrl": "http://localhost:4321/jacdac-docs/tools/makecode-sim/"
473473
}
474474
},
475475
"jacdac/pxt-jacdac-test": {

0 commit comments

Comments
 (0)