Compare commits
45 Commits
Author | SHA1 | Date | |
---|---|---|---|
28dec7efc8 | |||
afa15f3f64 | |||
bdb8728b99 | |||
5f7bc850e4 | |||
2df0a146f6 | |||
ba241e0938 | |||
d3e7c13c9b | |||
77f2ae61eb | |||
119bed0b75 | |||
3997819cda | |||
804c569e84 | |||
8b7d93af03 | |||
a18fbd713c | |||
1ebb55d11f | |||
74cb02db8d | |||
b88191ee54 | |||
9c4acba7eb | |||
87d22db6f3 | |||
d2cf715423 | |||
60a74ac525 | |||
864ed608bb | |||
a8b9d3e0fd | |||
01d08c6d4f | |||
426ad005d5 | |||
853625107c | |||
9c1b29cc80 | |||
9badaffee9 | |||
c3f539f396 | |||
991813fff7 | |||
85a8f1c2c5 | |||
ea33b81b2a | |||
c8381d7626 | |||
62b5941143 | |||
1d5d18dc88 | |||
bc4b71e0d6 | |||
5c47ce2f91 | |||
6a577287c1 | |||
8bd884e155 | |||
20be398c2c | |||
ccf6164d87 | |||
58294883d7 | |||
00194d4aa6 | |||
ec900f805e | |||
5f5bdd7294 | |||
38b2fc7b95 |
9
.github/calibre/image-actions.yml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
jpeg:
|
||||
quality: 80
|
||||
png:
|
||||
quality: 80
|
||||
webp:
|
||||
quality: 80
|
||||
ignorePaths:
|
||||
- "node_modules/**"
|
||||
- "libs/**"
|
12
.github/workflows/compress-images-on-pull-request.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
name: Compress images
|
||||
on: pull_request
|
||||
jobs:
|
||||
build:
|
||||
name: calibreapp/image-actions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: calibreapp/image-actions
|
||||
uses: calibreapp/image-actions@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@ -19,6 +19,14 @@ brick.buttonEnter.onEvent(ButtonEvent.Bumped, () => {
|
||||
|
||||
The editor works in [most modern browsers](/browsers). It works [offline](/offline) once loaded and doesn't require any installation. Take a look at some of the [features](/about/editor-features) of the editor.
|
||||
|
||||
### ~ hint
|
||||
|
||||
#### Using LEGO® MINDSTORMS® Education NXT
|
||||
|
||||
The MakeCode editor works with @boardname@. To create code for LEGO® MINDSTORMS® Education NXT, you need to [download](https://education.lego.com/downloads/retiredproducts/nxt/software) the software to program it.
|
||||
|
||||
### ~
|
||||
|
||||
## Compile and Flash: Your Program!
|
||||
|
||||
When you have your code ready, you connect your EV3 Brick to a computer with a USB cable so it appears as an attached drive (named **@drivename@**).
|
||||
@ -28,6 +36,8 @@ program to a **.uf2** file, which you then copy to the **@drivename@** drive. Th
|
||||
|
||||
### ~ hint
|
||||
|
||||
#### Bluetooth support
|
||||
|
||||
**Experimental support** for Bluetooth download is now available. Please read the [Bluetooth](/bluetooth) page for more information.
|
||||
|
||||
### ~
|
||||
|
@ -111,6 +111,11 @@ The MakeCode has a [FLL / City Shaper YouTube Channel](https://www.youtube.com/w
|
||||
|
||||
https://youtu.be/-AirqwC9DL4
|
||||
|
||||
## Do you have examples of program used in competitions?
|
||||
|
||||
The MakeCode team ran a team with friends and family in South Seattle and scored 175 points.
|
||||
The programs used for the crane, swing, red blocks and ramp are at https://github.com/lego-marshmallows (the robot build is not detailled).
|
||||
|
||||
### Why can't I delete my program (*.uf2) files from the Brick?
|
||||
|
||||
There's a bug in the firmware which prevents you from deleting the programs (``*.uf2`` files) from your EV3 Brick. There isn't a firmware update to fix this yet.
|
||||
|
@ -73,6 +73,12 @@ Verify that the program you just created shows eyes on the Brick Display, and th
|
||||
|
||||
**Well done!**
|
||||
|
||||
## Run it Again
|
||||
|
||||

|
||||
|
||||
Use the Brick Buttons and navigate to the File Manager tab. Open the **BrkProg_SAVE** folder, select **Try** and click the center button to run it again.
|
||||
|
||||
## Connect a Large Motor @unplugged
|
||||
|
||||
Now you will learn to control the Large Motor.
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
"appref": "v1.2.22"
|
||||
"appref": "v1.2.26"
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
# Coding in MakeCode
|
||||
|
||||
This guide helps users who are used to work with @boardname@ to get familiar with using blocks in MakeCode.
|
||||
This guide helps users who are used to working with @boardname@ become familiar with using blocks in MakeCode.
|
||||
|
||||
## Snap together the blocks
|
||||
|
||||
Just like with LabView, blocks in the MakeCode editor can be dragged from the cabinet and snapped together
|
||||
Just like in LabView, blocks in the MakeCode editor can be dragged from the cabinet and snapped together
|
||||
to create a sequence of program instructions.
|
||||
|
||||
Take a look a the LabView program below: it **starts**, turns on motor A, waits a second, and finally stops motor A.
|
||||
@ -133,7 +133,7 @@ brick.setStatusLight(StatusLight.OrangePulse);
|
||||
|
||||
## Waiting (pausing)
|
||||
|
||||
It is quite common to have to wait for a task to finish or for a sensor state to change, such as a touch button pressed. The ``||loops:pause||`` and ``||sensors:pause until||`` blocks provide a way for your program to wait for a period of time.
|
||||
It is quite common to have to wait for a task to finish or for a sensor state to change, such as when a touch button pressed. The ``||loops:pause||`` and ``||sensors:pause until||`` blocks provide a way for your program to wait for a period of time.
|
||||
|
||||

|
||||
|
||||
@ -207,7 +207,7 @@ forever(function () {
|
||||
|
||||
## Concurrent loops
|
||||
|
||||
You can start up multiple ``||loops:forever||`` loops that will run at the same time. Actually, only the code in just one of the loops is really running at any exact moment in time. Each loop, though, gets a turn to run all of its code and this makes them run [_concurrently_](https://en.wikipedia.org/wiki/Concurrent_computing).
|
||||
You can start up multiple ``||loops:forever||`` loops that run at the same time. Actually, only the code in just one of the loops is really running at any exact moment in time. Each loop, though, gets a turn to run all of its code and this makes them run [_concurrently_](https://en.wikipedia.org/wiki/Concurrent_computing).
|
||||
|
||||

|
||||
|
||||
|
@ -388,12 +388,12 @@
|
||||
}
|
||||
function downloadWin64() {
|
||||
// TODO: Keep this link up-to-date with the desired release version
|
||||
window.open("https://makecode.com/api/release/ev3/v1.2.22/win64");
|
||||
window.open("https://makecode.com/api/release/ev3/v1.2.26/win64");
|
||||
tickEvent("offlineapp.download", { "target": "ev3", "platform": "win64" });
|
||||
}
|
||||
function downloadMac64() {
|
||||
// TODO: Keep this link up-to-date with the desired release version
|
||||
window.open("https://makecode.com/api/release/ev3/v1.2.22/mac64");
|
||||
window.open("https://makecode.com/api/release/ev3/v1.2.26/mac64");
|
||||
tickEvent("offlineapp.download", { "target": "ev3", "platform": "mac64" });
|
||||
}
|
||||
</script>
|
||||
|
3
docs/stable-ref.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"appref": "v1.2"
|
||||
}
|
BIN
docs/static/Microsoft-logo_rgb_c-gray-square.png
vendored
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.3 KiB |
BIN
docs/static/Microsoft-logo_rgb_c-gray.png
vendored
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 12 KiB |
BIN
docs/static/about/blocks-toolbox.png
vendored
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 16 KiB |
BIN
docs/static/about/download-button.png
vendored
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
docs/static/about/explorer-button.png
vendored
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
docs/static/about/explorer-view.png
vendored
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 6.3 KiB |
BIN
docs/static/about/help-button.png
vendored
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 908 B |
BIN
docs/static/about/home-button.png
vendored
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 720 B |
BIN
docs/static/about/more-settings.png
vendored
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 868 B |
BIN
docs/static/about/redo-button.png
vendored
Before Width: | Height: | Size: 981 B After Width: | Height: | Size: 600 B |
BIN
docs/static/about/save-project.png
vendored
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
docs/static/about/share-button.png
vendored
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 596 B |
BIN
docs/static/about/share-dialog.png
vendored
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 18 KiB |
BIN
docs/static/about/undo-button.png
vendored
Before Width: | Height: | Size: 998 B After Width: | Height: | Size: 612 B |
BIN
docs/static/about/zoom-in.png
vendored
Before Width: | Height: | Size: 1011 B After Width: | Height: | Size: 625 B |
BIN
docs/static/about/zoom-out.png
vendored
Before Width: | Height: | Size: 933 B After Width: | Height: | Size: 579 B |
BIN
docs/static/backgrounds/simulator.png
vendored
Before Width: | Height: | Size: 681 B After Width: | Height: | Size: 445 B |
BIN
docs/static/bluetooth/experimental.png
vendored
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 26 KiB |
BIN
docs/static/coding/line-detection/car-road-line.jpg
vendored
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 26 KiB |
BIN
docs/static/coding/object-detection/ev3-cuboid.jpg
vendored
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 26 KiB |
BIN
docs/static/coding/object-detection/road-deer.jpg
vendored
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 26 KiB |
BIN
docs/static/configurations/chrome-version.png
vendored
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 10 KiB |
BIN
docs/static/configurations/edge-version.png
vendored
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
docs/static/configurations/ie-version.png
vendored
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 12 KiB |
BIN
docs/static/configurations/osx-version.png
vendored
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 120 KiB |
BIN
docs/static/configurations/safari-version.png
vendored
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 42 KiB |
BIN
docs/static/configurations/windows-version.png
vendored
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 72 KiB |
BIN
docs/static/download/firmware.png
vendored
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
docs/static/fll/context-help.jpg
vendored
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 24 KiB |
BIN
docs/static/fll/fll-logo.png
vendored
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 12 KiB |
BIN
docs/static/fll/import-button.jpg
vendored
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 39 KiB |
BIN
docs/static/fll/save-project.jpg
vendored
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 13 KiB |
BIN
docs/static/fll/share-button.jpg
vendored
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 8.4 KiB |
BIN
docs/static/fll/share-program.jpg
vendored
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 28 KiB |
BIN
docs/static/getting-started/02_ApplePickerRobot.jpg
vendored
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 36 KiB |
BIN
docs/static/getting-started/simulate.png
vendored
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 16 KiB |
BIN
docs/static/hero.png
vendored
Before Width: | Height: | Size: 481 KiB After Width: | Height: | Size: 347 KiB |
BIN
docs/static/icons/favicon-16x16.png
vendored
Before Width: | Height: | Size: 670 B After Width: | Height: | Size: 419 B |
BIN
docs/static/icons/favicon-32x32.png
vendored
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 987 B |
BIN
docs/static/labview/brake.png
vendored
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
BIN
docs/static/labview/brickimage.png
vendored
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
BIN
docs/static/labview/brickstatuslight.png
vendored
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
docs/static/labview/ife.png
vendored
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 42 KiB |
BIN
docs/static/labview/invertmotor.png
vendored
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 8.8 KiB |
BIN
docs/static/labview/lighttospeed.png
vendored
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 22 KiB |
BIN
docs/static/labview/motors.png
vendored
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 20 KiB |
BIN
docs/static/labview/multipleloops.png
vendored
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 48 KiB |
BIN
docs/static/labview/pausefordistance.png
vendored
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 16 KiB |
BIN
docs/static/labview/pausefortime.png
vendored
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
BIN
docs/static/labview/pausefortouch.png
vendored
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
BIN
docs/static/labview/random.png
vendored
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 28 KiB |
BIN
docs/static/labview/sequencing.png
vendored
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
BIN
docs/static/labview/speedoflight.png
vendored
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 22 KiB |
BIN
docs/static/labview/speedoflightvar.png
vendored
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 26 KiB |
BIN
docs/static/labview/steer.png
vendored
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
BIN
docs/static/labview/tank.png
vendored
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 20 KiB |
BIN
docs/static/labview/unregulatedmotor.png
vendored
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.3 KiB |
BIN
docs/static/labview/while.png
vendored
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 24 KiB |
BIN
docs/static/lego_education_logo.png
vendored
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 5.8 KiB |
BIN
docs/static/lego_education_logo_white.png
vendored
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 6.9 KiB |
BIN
docs/static/lessons/common/ev3-driving-base.jpg
vendored
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 27 KiB |
BIN
docs/static/lessons/firmware.png
vendored
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
docs/static/lessons/line-detection.jpg
vendored
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 28 KiB |
BIN
docs/static/lessons/line-detection/car-driving.jpg
vendored
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 18 KiB |
BIN
docs/static/lessons/make-it-move/toddle-bot.jpg
vendored
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 5.4 KiB |