Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
bf4b1090fc | |||
ea4d8cf66a | |||
b32ae4e61a | |||
1df90a6ea3 | |||
09ac2a7a47 | |||
06565995d3 | |||
1a73aec74d | |||
5516d041d6 | |||
7aac8ab5f3 | |||
73da17a395 | |||
16197f2987 | |||
5ec7eb6f04 | |||
f05ad887b8 | |||
c8a7b73101 |
@ -30,6 +30,8 @@ If you want some building help you can follow these instructions.
|
|||||||
|
|
||||||
[](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/toddle%20bot-3dcad146d7f5deac4753f93e9dcc0739.pdf)
|
[](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/toddle%20bot-3dcad146d7f5deac4753f93e9dcc0739.pdf)
|
||||||
|
|
||||||
|
Click [here](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/toddle%20bot-3dcad146d7f5deac4753f93e9dcc0739.pdf)
|
||||||
|
|
||||||
### Program
|
### Program
|
||||||
|
|
||||||
Before you program, think about:
|
Before you program, think about:
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"appref": "v0.2.3"
|
"appref": "v0.3.6"
|
||||||
}
|
}
|
||||||
|
@ -388,7 +388,7 @@
|
|||||||
}
|
}
|
||||||
function downloadWin64() {
|
function downloadWin64() {
|
||||||
// TODO: Keep this link up-to-date with the desired release version
|
// TODO: Keep this link up-to-date with the desired release version
|
||||||
window.open("https://makecode.com/api/release/ev3/v0.3.2/win32");
|
window.open("https://makecode.com/api/release/ev3/v0.3.6/win64");
|
||||||
tickEvent("offlineapp.download", { "target": "ev3", "platform": "win64" });
|
tickEvent("offlineapp.download", { "target": "ev3", "platform": "win64" });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
@ -66,7 +66,7 @@ brick.buttonDown.onEvent(ButtonEvent.Pressed, function () {
|
|||||||
|
|
||||||
## Step 5
|
## Step 5
|
||||||
|
|
||||||
Now, let’s add a Medium motor, and tell it how many rotations we want it to run for. Open the ``||brick:Brick||`` Toolbox drawer. Drag out **2** ``|brick:on button||`` blocks. In the ``||brick:on button||`` blocks, use the drop-down menu to select the ``left`` and ``right`` buttons.
|
Open the ``||brick:Brick||`` Toolbox drawer and drag out **2** ``|brick:on button||`` blocks. In the ``||brick:on button||`` blocks, use the drop-down menu to select the ``left`` and ``right`` buttons.
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
brick.buttonUp.onEvent(ButtonEvent.Pressed, function () {
|
brick.buttonUp.onEvent(ButtonEvent.Pressed, function () {
|
||||||
|
@ -16,7 +16,7 @@ brick.showString("Hello world", 1)
|
|||||||
|
|
||||||
## Step 2
|
## Step 2
|
||||||
|
|
||||||
In the ``||brick:show string||`` block, type the text ``"Guess teh animal"`` to replace ``"Hello world"``.
|
In the ``||brick:show string||`` block, type the text ``"Guess the animal"`` to replace ``"Hello world"``.
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
brick.showString("Guess the animal", 1)
|
brick.showString("Guess the animal", 1)
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pxt-ev3",
|
"name": "pxt-ev3",
|
||||||
"version": "0.3.5",
|
"version": "0.4.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pxt-ev3",
|
"name": "pxt-ev3",
|
||||||
"version": "0.3.5",
|
"version": "0.4.2",
|
||||||
"description": "LEGO MINDSTORMS EV3 for Microsoft MakeCode",
|
"description": "LEGO MINDSTORMS EV3 for Microsoft MakeCode",
|
||||||
"private": true,
|
"private": true,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -39,8 +39,8 @@
|
|||||||
"webfonts-generator": "^0.4.0"
|
"webfonts-generator": "^0.4.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pxt-common-packages": "0.23.39",
|
"pxt-common-packages": "0.23.45",
|
||||||
"pxt-core": "3.20.11"
|
"pxt-core": "3.21.7"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
"cardLogo": "./static/icons/android-chrome-192x192.png",
|
"cardLogo": "./static/icons/android-chrome-192x192.png",
|
||||||
"appLogo": "./static/icons/android-chrome-192x192.png",
|
"appLogo": "./static/icons/android-chrome-192x192.png",
|
||||||
"organization": "Microsoft MakeCode",
|
"organization": "Microsoft MakeCode",
|
||||||
"organizationUrl": "https://makecode.com/",
|
"organizationUrl": "https://makecode.com/org",
|
||||||
"organizationLogo": "./static/Microsoft-logo_rgb_c-gray-square.png",
|
"organizationLogo": "./static/Microsoft-logo_rgb_c-gray-square.png",
|
||||||
"organizationWideLogo": "./static/Microsoft-logo_rgb_c-gray.png",
|
"organizationWideLogo": "./static/Microsoft-logo_rgb_c-gray.png",
|
||||||
"homeUrl": "https://makecode.mindstorms.com/",
|
"homeUrl": "https://makecode.mindstorms.com/",
|
||||||
|
@ -15,6 +15,6 @@
|
|||||||
"Maker": "maker"
|
"Maker": "maker"
|
||||||
},
|
},
|
||||||
"electronManifest": {
|
"electronManifest": {
|
||||||
"latest": "v0.1.60"
|
"latest": "v0.3.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,11 +33,12 @@
|
|||||||
|
|
||||||
/* Music field editor */
|
/* Music field editor */
|
||||||
|
|
||||||
.blocklyDropdownText {
|
.blocklyMusicFieldOptions .blocklyDropdownText, .blocklyMusicFieldCategories .blocklyDropdownText {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blocklyMusicFieldCategories {
|
.blocklyMusicFieldCategories {
|
||||||
@ -47,6 +48,7 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.blocklyMusicFieldOptions {
|
.blocklyMusicFieldOptions {
|
||||||
margin-top: 80px;
|
margin-top: 80px;
|
||||||
|
Reference in New Issue
Block a user