ea956f1a73
* renaming up/down/click to released/pressed/bump * missing images * fixing signature issue * updated strings * white lego logo
10 lines
204 B
Markdown
10 lines
204 B
Markdown
# Cruise Control Activity 1
|
|
|
|
```blocks
|
|
let speed = 0;
|
|
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
|
|
if (speed < 100)
|
|
speed = speed + 10;
|
|
motors.largeBC.setSpeed(speed);
|
|
})
|
|
``` |