Setting up for clarity
1
#!/usr/bin/env pybricks-micropython
2
from pybricks.hubs import EV3Brick
3
from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor,
4
InfraredSensor, UltrasonicSensor, GyroSensor)
5
from pybricks.parameters import Port, Stop, Direction, Button, Color
6
from pybricks.tools import wait, StopWatch, DataLog
7
from pybricks.robotics import DriveBase
8
from pybricks.media.ev3dev import SoundFile, ImageFile
9
from movementfunctions import line_follow
10
11
class MyRobot():
12
def __init__(self):
13
pass
14
15
def new_function(parameters):
16
pass
17
Copied!
Last modified 2mo ago
Export as PDF
Copy link