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
Copy file name to clipboardExpand all lines: content/hardware/08.edu/solution-and-kits/alvik/tutorials/getting-started-mblock/getting-started-mblock.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "Start with Alvik and Block-based Language"
2
+
title: "Start With Alvik And Block-based Language"
3
3
difficulty: beginner
4
4
description: "Take your first steps with Arduino® Alvik and mBlock."
5
5
tags:
@@ -95,7 +95,7 @@ To find the "mLink - mBlock web version driver" and download the appropriate fil
95
95
96
96
97
97
98
-
## Connect the robot to mBlock
98
+
## Connect the Robot to mBlock
99
99
100
100
To program Alvik, start by opening the mBlock software if you haven’t already. Once the software is open, follow these steps to connect:
101
101
@@ -144,9 +144,9 @@ Explore mBlock to start programming Alvik. You'll find a list of visual blocks i
144
144
145
145
Every parameter inside the **rectangle area**, for example the number `5` or the `cancel ▼` element in the dropdown menu can be edited, to give Alvik a different behavior.
146
146
147
-

147
+

148
148
149
-
Some blocks, for example in `Control` section, have an angular tile `⬣` parameter, where you can drag and drop in an entire block, allowing you to nest commands like`if < > then { }`.
149
+
Some blocks, for example in the`Control` section, have an **hexagonal** tile `⬣` parameter, where you can drag and drop in an entire block, allowing you to nest commands like for `if < > then { }`.
150
150
151
151
## Blink
152
152
@@ -168,14 +168,14 @@ The goal of our first program is to make the LEDs flash when you press a button
168
168
169
169
Now you’ve created your first program: Alvik will turn on the left LED for one second when the OK `✔` button is pressed.
170
170
171
-

171
+

172
172
173
173
### ToF Sensor Example
174
174
175
175
use the command `if < > then { } else { }`
176
-
176
+
177
177
Alvik needs time to read the distance sensor, and if you keep looping too fast, it might get overwhelmed. To fix this, add a **small delay** (about 0.1 seconds). This won’t change much in behavior but will give Alvik **enough time to read the sensor**.
178
-
178
+
179
179
### Next Steps
180
180
181
181
* If you want to learn more about how Alvik is built or which functions you can use to program it, visit the documentation in the [Docs space for Alvik](https://docs.arduino.cc/hardware/alvik/) and follow the respective [Alvik's User Manual](https://docs.arduino.cc/hardware/alvik/user-manual) to know more about how to build incredible projects with your robot!
0 commit comments