sets/mindstorms/ev3-home-main: Update Spik3r.

* update Spik3r README

* update Spik3r README

* update spik3r

* rename readme to index
This commit is contained in:
Antoni Lương-Phạm Anh Quân
2021-05-14 12:46:13 +02:00
committed by GitHub
parent 508287a477
commit d5739c487c
2 changed files with 28 additions and 3 deletions
+28 -3
View File
@@ -1,9 +1,20 @@
# Example LEGO® MINDSTORMS® EV3 Spik3r Program
---
title: "LEGO® MINDSTORMS® EV3 Home Edition: Spik3r"
maintainer:
user: "TheVinhLuong102"
name: "The Lương-Phạm Family"
image:
local: "spik3r.jpeg"
credit: "LEGO"
description:
"This six-legged creature doesnt just look like a scorpion, it also acts like one. It turns sharply, snaps with its crushing claw, and its lightning tail is ready to fire at anyone or anything that gets in its way."
building_instructions:
external: https://www.lego.com/cdn/product-assets/product.bi.additional.extra.pdf/31313_X_SPIK3R.pdf
---
This program requires LEGO® EV3 MicroPython v2.0 downloadable at https://education.lego.com/en-us/support/mindstorms-ev3/python-for-ev3.
Building instructions can be found at https://www.lego.com/en-us/themes/mindstorms/buildarobot.
Spik3r works as follows:
- Spik3r stings with its Lightning Tail when the Beacon button is pressed
@@ -11,3 +22,17 @@ Spik3r works as follows:
- Spik3r moves forward when the IR Beacon's two Up buttons are pressed, and turns right when only the Right Up button is pressed
- Spik3r crushes objects with its Claw when the Touch Sensor is pressed
The code for the `Spik3r` class is in `spik3r.py` as follows:
{% include copy-code.html %}
```python
{% include_relative spik3r.py %}
```
The code for the main program is in `main.py` as follows:
{% include copy-code.html %}
```python
{% include_relative main.py %}
```
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB