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
{{ message }}
This repository was archived by the owner on Nov 7, 2026. It is now read-only.
Repository navigation
Commit bc88830
Browse filesBrowse the repository at this point in the historyBrowse files
Web 0.14.29: VisuBot-Befehle farblich nach Gruppen und mit Symbolen (#258)
* Web 0.14.28: VisuBot-Befehle farblich nach Gruppen
Streifen in der Palette, Punkte an Gruppen und im Nachschlagen; Gruppe
Licht/Ton/Bildschirm geteilt. Kästen bleiben gelb.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ugz28VNUeu1hn8zWaCPkwJ
* VisuBot: Symbole für jede Befehlsgruppe (Palette + Nachschlagen)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ugz28VNUeu1hn8zWaCPkwJ
* Version 0.14.29 (0.14.28 ist an #259 vergeben)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ugz28VNUeu1hn8zWaCPkwJ
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ The format is loosely inspired by Keep a Changelog.
8
8
9
9
### Changed
10
10
11
+
- **Web 0.14.29, VisuBot commands grouped by colour:** in the palette every mBot2 box gets a 4 px stripe on the left and every group heading a dot in the colour of its group: driving and wheels orange, light (LEDs) yellow-green, sound magenta, screen and emotions indigo, waiting and stopwatch grey, all sensors turquoise. The boxes themselves stay yellow (statement), and the structure chart and the code are unchanged. The former group „Licht, Ton und Bildschirm“ is split into „Licht“, „Ton“ and „Bildschirm“ in the palette and in the VisuBot Nachschlagen (de/en), whose `###` headings show the same dots. New lesson syntax `### Überschrift {.klasse}`. With „Blöcke farbig“ off, stripes and dots disappear. Every sub-group also gets a symbol in the palette (all languages) and in the Nachschlagen headings: 🚗 driving, ⚙️ wheels, 💡 LEDs, 🔊 sound, 🖥️ screen, 😊 emotions, ⏱️ waiting, 📏 distance, ➖ line, 🎨 colours, 🕹️ buttons/joystick, 🔆 light/loudness, 📐 tilt, 🔋 stopwatch/battery.
11
12
- **Web 0.14.27, VisuBot: `forward`/`backward` overloaded with a unit:** besides `mbot.forward()` (10 cm) and `mbot.forward(30)` there is now `mbot.forward(2, "Umdrehungen")` and `mbot.forward(30, "cm")` (en `"rotations"`, pt `"rotações"`), same for `backward`. One wheel rotation is π · 6.5 cm ≈ 20.4 cm; the action stores the distance in cm, so simulation, exercise check and the real robot (`mbot2.straight`) work unchanged, and the console shows e.g. „2 Umdrehungen vorwärts (40.84 cm)“. An unknown unit is an error naming the allowed units. The CyberPi program export gets the same overload. VisuBot lesson 22 gets a step „Gleicher Name, andere Parameter: Überladung“ with the three headers, a Ludwig Angeberwissen asking pupils to measure their own robot with a printable test record (PDF, de/en, `website/visubot/messprotokoll-radumdrehung.pdf` / `test-record-wheel-rotation.pdf`: wheel diameter, five test cases expected vs. actual, evaluation, causes, feedback for the teacher, box „So testet man Softwaresysteme“), the exercise „Quadrat mit Umdrehungen“ and a quiz; Nachschlagen, glossary („Überladung“) and code completion list the new variants (de/en).
12
13
-**Web 0.14.26, animation: nested loop fills a times table in lesson 14:** in step „Schleife in der Schleife“, after the triangle example (which keeps the names `zeile`/`stern`), a new sentence says experienced programmers call the counters `i` and `j`, followed by an animated structure chart: the active block lights up, a variables box shows `i`, `j` and `text` (pt `texto`), and the console fills line by line with `1 2 3 4`, `2 4 6 8`, `3 6 9 12`. It shows that `j` starts again at 1 on every new line. Plays once when visible, „Noch einmal abspielen“ replays it (de/en/pt).
13
14
-**Web 0.14.25, „Bombe entschärfen“: tap part of a line:** a bomb round can name the wrong part with `stelle:` (e.g. `stelle: i++`). Such rounds show the parts of every line as tappable boxes (the three fields of a `for` header, the condition of `if`/`while`, target and value of an assignment, call and arguments split at `+`); right line but wrong part gives its own hint. Lesson 13 (6 of 8 rounds) and lesson 15 (all 6 rounds) use it (de/en/pt, texts in all 21 languages).
Copy file name to clipboardExpand all lines: web/lessons/de/visubot/nachschlagen.md
+28-16Lines changed: 28 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Ein Befehl sagt dem mBot2, was er **tun** soll. Jeder Befehl beginnt mit `mbot.` und endet mit Klammern. In die Klammern schreibst du oft eine Zahl.
4
4
5
-
### Fahren und Drehen
5
+
### 🚗 Fahren und Drehen {.bot-fahren}
6
6
7
7
Der mBot2 fährt geradeaus oder dreht sich auf der Stelle.
8
8
@@ -24,7 +24,7 @@ mbot.turnRight(180) dreht sich ganz um
24
24
25
25
> Für ein Vieleck dreht er sich insgesamt einmal ganz herum: Dreieck 3 × 120°, Quadrat 4 × 90°, Sechseck 6 × 60°.
26
26
27
-
### Räder einzeln
27
+
### ⚙️ Räder einzeln {.bot-fahren}
28
28
29
29
Hier gibst du jedem Rad selbst Gas. Die Zahlen sind Prozent: 100 ist volles Gas, 0 ist Stillstand, eine Zahl mit Minus fährt rückwärts. Der mBot2 fährt so lange weiter, bis ein anderer Fahrbefehl kommt.
30
30
@@ -35,24 +35,36 @@ mbot.drive(40, -40) ein Rad vor, eins zurück: dreht sich
35
35
mbot.stop() hält an
36
36
```
37
37
38
-
### Licht, Ton und Bildschirm
38
+
### 💡 Licht {.bot-licht}
39
39
40
-
Der mBot2 kann leuchten, piepen und Text zeigen.
40
+
Der mBot2 hat fünf LEDs mit den Nummern 0 bis 4.
41
41
42
42
```
43
43
mbot.setLed(255, 0, 0) alle LEDs leuchten rot
44
44
mbot.ledOff() alle LEDs aus
45
45
mbot.led(0).setColor("grün") nur LED 0 leuchtet grün
46
46
mbot.led(0).setColor("aus") nur LED 0 aus
47
+
```
48
+
49
+
Bei `setLed` mischst du Rot, Grün und Blau, jedes von 0 (aus) bis 255 (ganz hell).
50
+
51
+
### 🔊 Ton {.bot-ton}
52
+
53
+
```
47
54
mbot.playTone(440, 300) spielt einen Ton
55
+
```
56
+
57
+
Die erste Zahl ist die Tonhöhe. Je größer, desto höher. Die zweite Zahl ist die Länge in Millisekunden (1000 Millisekunden sind 1 Sekunde).
58
+
59
+
### 🖥️ Bildschirm {.bot-anzeige}
60
+
61
+
```
48
62
mbot.showText("Hallo") zeigt Hallo auf dem Bildschirm
49
63
```
50
64
51
-
-**LEDs:** Es gibt fünf LEDs mit den Nummern 0 bis 4. Bei `setLed` mischst du Rot, Grün und Blau, jedes von 0 (aus) bis 255 (ganz hell).
52
-
-**Ton:** Die erste Zahl ist die Tonhöhe. Je größer, desto höher. Die zweite Zahl ist die Länge in Millisekunden (1000 Millisekunden sind 1 Sekunde).
53
-
-**Bildschirm:** Mit `+` hängst du Text und Zahlen aneinander: `mbot.showText("Abstand: " + mbot.getDistance())`.
65
+
Mit `+` hängst du Text und Zahlen aneinander: `mbot.showText("Abstand: " + mbot.getDistance())`.
54
66
55
-
### Gefühle
67
+
### 😊 Gefühle {.bot-anzeige}
56
68
57
69
Der mBot2 zeigt ein Gefühl mit Licht, Ton und Wackeln. Das siehst du nur am echten mBot2.
@@ -77,7 +89,7 @@ Die Zeit der Stoppuhr liest du mit dem Sensor `mbot.getTimer()` (unten bei **Sto
77
89
78
90
Ein Sensor **misst** etwas und gibt dir einen Wert zurück. Den Wert benutzt du in einer Bedingung, zum Beispiel in einer Schleife oder Verzweigung. Manche Sensoren liefern eine **Zahl**, manche **wahr oder falsch**, einer einen **Text**.
79
91
80
-
### Abstand
92
+
### 📏 Abstand {.bot-sensor}
81
93
82
94
Der Ultraschallsensor vorn misst, wie weit die nächste Wand weg ist, in Zentimetern.
83
95
@@ -87,7 +99,7 @@ mbot.getDistance() > 15 ist vorn mehr als 15 cm frei?
87
99
int abstand = mbot.getDistance() Abstand in einer Variablen merken
88
100
```
89
101
90
-
### Linie
102
+
### ➖ Linie {.bot-sensor}
91
103
92
104
Unter dem mBot2 sitzen vier Fühler. Sie sehen, ob der Boden schwarz ist.
mbot.isLineRight() sieht der rechte mittlere Fühler Schwarz?
100
112
```
101
113
102
-
### Farben
114
+
### 🎨 Farben {.bot-sensor}
103
115
104
116
Derselbe Sensor unten erkennt auch Farben. `mbot.getColor()` gibt dir den Namen der Farbe als Text: `"rot"`, `"grün"`, `"blau"`, `"gelb"`, `"weiß"` oder `"schwarz"`.
105
117
@@ -110,7 +122,7 @@ mbot.getColor().equals("rot") steht er auf Rot?
110
122
111
123
> Texte vergleichst du mit `.equals(…)`, nicht mit `==`. Das `!` davor heißt **nicht**.
112
124
113
-
### Tasten und Joystick
125
+
### 🕹️ Tasten und Joystick {.bot-sensor}
114
126
115
127
Auf dem CyberPi gibt es die Tasten A und B und einen kleinen Joystick. Jeder Sensor sagt **wahr**, solange gedrückt wird.
116
128
@@ -123,14 +135,14 @@ mbot.isJoystickLeft() Joystick nach links gedrückt?
123
135
mbot.isJoystickRight() Joystick nach rechts gedrückt?
124
136
```
125
137
126
-
### Licht und Lautstärke
138
+
### 🔆 Licht und Lautstärke {.bot-sensor}
127
139
128
140
```
129
141
mbot.getBrightness() wie hell? 0 ist dunkel, 100 ist hell
130
142
mbot.getLoudness() wie laut? 0 ist still, 100 ist laut
131
143
```
132
144
133
-
### Neigung und Schütteln
145
+
### 📐 Neigung und Schütteln {.bot-sensor}
134
146
135
147
```
136
148
mbot.getPitch() nach vorn oder hinten gekippt? (in Grad)
@@ -140,7 +152,7 @@ mbot.isShaken() wird er geschüttelt?
140
152
141
153
> Liegt der mBot2 flach, sind beide Neigungen 0. In der Simulation stellst du diese Werte unter **🎛 Sensoren ausprobieren** ein.
142
154
143
-
### Stoppuhr und Akku
155
+
### 🔋 Stoppuhr und Akku {.bot-sensor}
144
156
145
157
```
146
158
mbot.getTimer() Sekunden seit dem Start oder seit resetTimer()
Copy file name to clipboardExpand all lines: web/lessons/en/visubot/nachschlagen.md
+28-16Lines changed: 28 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
A command tells the mBot2 what to **do**. Every command starts with `mbot.` and ends with brackets. Often you write a number in the brackets.
4
4
5
-
### Driving and turning
5
+
### 🚗 Driving and turning {.bot-fahren}
6
6
7
7
The mBot2 drives straight or turns on the spot.
8
8
@@ -24,7 +24,7 @@ mbot.turnRight(180) turns all the way round
24
24
25
25
> For a polygon it turns all the way round once in total: triangle 3 × 120°, square 4 × 90°, hexagon 6 × 60°.
26
26
27
-
### Wheels separately
27
+
### ⚙️ Wheels separately {.bot-fahren}
28
28
29
29
Here you give each wheel gas yourself. The numbers are percent: 100 is full gas, 0 is standing still, a number with a minus drives backwards. The mBot2 keeps going until another driving command comes.
30
30
@@ -35,24 +35,36 @@ mbot.drive(40, -40) one wheel forward, one back: it turns
35
35
mbot.stop() stops
36
36
```
37
37
38
-
### Light, sound and screen
38
+
### 💡 Light {.bot-licht}
39
39
40
-
The mBot2 can light up, beep and show text.
40
+
The mBot2 has five LEDs with the numbers 0 to 4.
41
41
42
42
```
43
43
mbot.setLed(255, 0, 0) all LEDs light up red
44
44
mbot.ledOff() all LEDs off
45
45
mbot.led(0).setColor("green") only LED 0 lights up green
46
46
mbot.led(0).setColor("off") only LED 0 off
47
+
```
48
+
49
+
With `setLed` you mix red, green and blue, each from 0 (off) to 255 (very bright).
50
+
51
+
### 🔊 Sound {.bot-ton}
52
+
53
+
```
47
54
mbot.playTone(440, 300) plays a tone
55
+
```
56
+
57
+
The first number is the pitch. The bigger, the higher. The second number is the length in milliseconds (1000 milliseconds are 1 second).
58
+
59
+
### 🖥️ Screen {.bot-anzeige}
60
+
61
+
```
48
62
mbot.showText("Hello") shows Hello on the screen
49
63
```
50
64
51
-
-**LEDs:** There are five LEDs with the numbers 0 to 4. With `setLed` you mix red, green and blue, each from 0 (off) to 255 (very bright).
52
-
-**Tone:** The first number is the pitch. The bigger, the higher. The second number is the length in milliseconds (1000 milliseconds are 1 second).
53
-
-**Screen:** With `+` you join text and numbers: `mbot.showText("Distance: " + mbot.getDistance())`.
65
+
With `+` you join text and numbers: `mbot.showText("Distance: " + mbot.getDistance())`.
54
66
55
-
### Emotions
67
+
### 😊 Emotions {.bot-anzeige}
56
68
57
69
The mBot2 shows a feeling with light, sound and wiggling. You only see it on the real mBot2.
@@ -77,7 +89,7 @@ You read the stopwatch time with the sensor `mbot.getTimer()` (below under **Sto
77
89
78
90
A sensor **measures** something and gives you a value back. You use the value in a condition, for example in a loop or a branch. Some sensors give a **number**, some **true or false**, one gives a **text**.
79
91
80
-
### Distance
92
+
### 📏 Distance {.bot-sensor}
81
93
82
94
The ultrasonic sensor at the front measures how far away the next wall is, in centimetres.
83
95
@@ -87,7 +99,7 @@ mbot.getDistance() > 15 is there more than 15 cm free ahead?
87
99
int distance = mbot.getDistance() remember the distance in a variable
88
100
```
89
101
90
-
### Line
102
+
### ➖ Line {.bot-sensor}
91
103
92
104
Under the mBot2 there are four probes. They see whether the floor is black.
93
105
@@ -99,7 +111,7 @@ mbot.isLineLeft() does the left middle probe see black?
99
111
mbot.isLineRight() does the right middle probe see black?
100
112
```
101
113
102
-
### Colours
114
+
### 🎨 Colours {.bot-sensor}
103
115
104
116
The same sensor underneath also recognises colours. `mbot.getColor()` gives you the name of the colour as text: `"red"`, `"green"`, `"blue"`, `"yellow"`, `"white"` or `"black"`.
105
117
@@ -110,7 +122,7 @@ mbot.getColor().equals("red") is it standing on red?
110
122
111
123
> You compare texts with `.equals(…)`, not with `==`. The `!` in front means **not**.
112
124
113
-
### Buttons and joystick
125
+
### 🕹️ Buttons and joystick {.bot-sensor}
114
126
115
127
On the CyberPi there are the buttons A and B and a small joystick. Each sensor says **true** while it is being pressed.
0 commit comments