Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
lehrkraefte:blc:informatik:glf20:robotik:robotereinschalten [2021/04/16 08:15] Ivo Blöchliger [Roboter und Laptop einschalten] |
lehrkraefte:blc:informatik:glf20:robotik:robotereinschalten [2021/04/16 08:16] Ivo Blöchliger [Roboter und Laptop einschalten] |
||
---|---|---|---|
Line 12: | Line 12: | ||
<code python robotest.py> | <code python robotest.py> | ||
from ev3robot import * # Roboterfunktionen einbinden | from ev3robot import * # Roboterfunktionen einbinden | ||
- | # Roboter initialisieren | + | robot = LegoRobot() |
- | robot = LegoRobot() | + | gear = Gear() |
- | # Raeder hinzufuegen | + | robot.addPart(gear) |
- | gear = Gear() | + | |
- | robot.addPart(gear) | + | |
# B E G I N D E S P R O G R A M M S | # B E G I N D E S P R O G R A M M S |