You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MicroCode integrates with [Jacdac](https://aka.ms.jacdac) in several ways
8
+
MicroCode will detect [Jacdac](https://aka.ms/jacdac) modules and automatically display tiles for some of them. Tiles are available for all modules in [Kittenbot Jacdac Kit A](https://microsoft.github.io/jacdac-docs/devices/kittenbot/jacdacstarterkitawithjacdaptorformicrobitv2v10/),
9
+
as as well as the [Forward Education Climate Kit](https://microsoft.github.io/jacdac-docs/devices/forward-education/climateactionkitv10/). Many of the modules in [Kittenbot Jacdac Kit B](https://microsoft.github.io/jacdac-docs/devices/kittenbot/jacdacdeveloperstoolelectronicmodulekitbv10/) also are supported.
9
10
10
-
- the MicroCode program is compiled to the bytecode of the Jacdac virtual machine (JDVM), which can be run on the same micro:bit or exported to other micro:bits
11
-
- the MicroCode editor recognizes a small set of Jacdac modules, when connected, providing programming tiles for those modules
11
+
Programming tiles for Jacdac modules appear in the user interface when the modules are connected to the shield. The Jacdac tiles have a small yellow square in the lower-right corner.
12
+
13
+
### WHEN modules
14
+
15
+
#### Sensors
16
+
17
+
-{:class="icon"} `magnet sensor` detects the presence of a magnet (levels 1 - 5, where 1 means no magnet present and 5 means strong presence of magnetic field)
18
+
-{:class="icon"} `light sensor` measures the amount of light (levels 1 - 5, where 1 means little light present and 5 means a lot of light present)
measures the amount of moisture (levels 1 - 5, where 1 means very dry and 5 means very wet)
21
+
-{:class="icon"} `distance sensor` measures the distance to an object (levels 1 - 5, where 1 means very close and 5 means far away)
whether the surface under the sensor is dark or light
24
+
25
+
#### User inputs
26
+
27
+
-{:class="icon"} `slider` measures the position of a physical slider (1-5, where 1 is minimum position and 5 is maximum position)
28
+
-{:class="icon"} `dial` has two associated events: turn left {:class="icon"} and turn right {:class="icon"}
29
+
-{:class="icon"} `key` is available in the press/release event.
30
+
31
+
### DO modules
32
+
33
+
-{:class="icon"} `LED` set a color animation on a programmable LED strip
34
+
-{:class="icon"} `relay` controls a relay switch (turning it on or off)
35
+
-{:class="icon"} `servo power` controls the power to a servo motor (turning it on or off)
36
+
-{:class="icon"} `set servo angle` controls the orientation of a servo motor arm. The {:class="icon"} `servo` arm orientation is mapped to the wall clock hours: `0` (or `12`) is on rotated 90 degree from the resting position to the left, `6` is rotated 90 degree right from the rest position. This operation depends on the servo being powered on.
Copy file name to clipboardexpand all lines: docs/language.md
+4-23
Original file line number
Diff line number
Diff line change
@@ -184,33 +184,14 @@ after `repeat` determine the number of iterations. If no value is given, it repe
184
184
185
185
-**when**{:class="icon"} press {:class="icon"} micro:bit logo, **do**{:class="icon"} show image happy animation and {:class="icon"} repeat {:class="icon"} 3 times.
186
186
187
-
## Jacdac Modules {#jacdac}
187
+
## Jacdac {#jacdac}
188
188
189
-
MicroCode will detect [Jacdac](https://aka.ms/jacdac) modules and automatically display tiles for some of them. Tiles are available for all modules in [Kittenbot Jacdac Kit A](https://microsoft.github.io/jacdac-docs/devices/kittenbot/jacdacstarterkitawithjacdaptorformicrobitv2v10/). Tiles appear when the modules are connected.
190
-
191
-
### WHEN modules
192
-
193
-
#### Sensors
194
-
195
-
-{:class="icon"} `magnet sensor` detects the presence of a magnet (levels 1 - 5, where 1 means no magnet present and 5 means strong presence of magnetic field)
196
-
-{:class="icon"} `light sensor` measures the amount of light (levels 1 - 5, where 1 means little light present and 5 means a lot of light present)
197
-
198
-
#### User inputs
199
-
200
-
-{:class="icon"} `slider` measures the position of a physical slider (1-5, where 1 is minimum position and 5 is maximum position)
201
-
-{:class="icon"} `dial` has two associated events: turn left {:class="icon"} and turn right {:class="icon"}
202
-
-{:class="icon"} `key` is available in the press/release event.
203
-
204
-
### DO modules
205
-
206
-
-{:class="icon"} `LED` set a color animation on a programmable LED strip
207
-
-{:class="icon"} `servo` controls the orientation of a servo motor arm. The {:class="icon"} `servo` arm orientation is mapped to the wall clock hours: `0` (or `12`) is on rotated 90 degree from the resting position to the left, `6` is rotated 90 degree right from the rest position.
189
+
MicroCode will detect connected [Jacdac](./jacdac) modules and automatically display programming tiles for them. Tiles are available for all modules in [Kittenbot Jacdac Kit A](https://microsoft.github.io/jacdac-docs/devices/kittenbot/jacdacstarterkitawithjacdaptorformicrobitv2v10/),
190
+
as as well as the [Forward Education Climate Kit](https://microsoft.github.io/jacdac-docs/devices/forward-education/climateactionkitv10/). Many of the modules in [Kittenbot Jacdac Kit B](https://microsoft.github.io/jacdac-docs/devices/kittenbot/jacdacdeveloperstoolelectronicmodulekitbv10/) also are supported.
208
191
209
192
## Robot {#robot}
210
193
211
-
MicroCode can be used to control a micro:bit robot ([read more](./robot)).
212
-
213
-
Make to start your program by setting the same radio group as the robot.
194
+
MicroCode can be used to control a micro:bit robot ([read more](./robot)). Make sure to start your program by setting the same radio group as the robot.
214
195
215
196
{:class="rule"}
Copy file name to clipboardexpand all lines: docs/manual.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ description: User guide for the MicroCode editor
8
8
9
9
MicroCode makes it possible to program the [micro:bit V2](https://microbit.org)
10
10
**without the need for an extra computer or Internet connection**.
11
-
As shown above, the micro:bit slots into a (commercially available) shield that provides a color display and extra inputs.
11
+
As shown above, the micro:bit slots into a (commercially available) shield that provides a color display and extra inputs.
12
12
The MicroCode visual programming model is based on Kodu and targets children age 6-9, younger than the traditional audience for the micro:bit. MicroCode features:
13
13
14
14
-[arcade shields](#arcade-shields) for the micro:bit V2 enable "on the go" programming with familiar game console controls
@@ -90,8 +90,11 @@ to follow lines, avoid obstacles and more.
90
90
91
91
## Accessories {#jacdac}
92
92
93
-
MicroCode supports accessories to extend the micro:bit device with LEDs, servos, motors, ...
94
-
In this video, we launch an LED animation when a clap is detected. The accessories are powered by [Jacdac](https://microsoft.github.io/jacdac-docs).
93
+
[{:class="photo"}](./jacdac)
94
+
95
+
MicroCode recognizes many commercially-available
96
+
[Jacdac modules](https://aka.ms/jacdac) that allow you to extend the micro:bit device with LEDs, servos, and much more.
97
+
In this video, we launch an LED animation when a clap is detected.
0 commit comments