updated classname to avoid collisions with gpiozero
This commit is contained in:
parent
8dc6be6cfc
commit
328b03a76f
@ -8,7 +8,7 @@
|
||||
from gpiozero import Motor, PWMOutputDevice
|
||||
|
||||
|
||||
class Motor:
|
||||
class TMotor:
|
||||
def __init__(self, motor_pin1, motor_pin2, pwm_pin):
|
||||
pass
|
||||
|
||||
|
||||
@ -2,12 +2,12 @@
|
||||
# This file contains the main code to control the robot.
|
||||
#
|
||||
####################################################################
|
||||
from motors import Motor
|
||||
from motors import TMotor
|
||||
|
||||
|
||||
def main():
|
||||
leftMotor = Motor(17, 18, 22)
|
||||
rightMotor = Motor(23, 24, 25)
|
||||
leftMotor = TMotor(17, 18, 22)
|
||||
rightMotor = TMotor(23, 24, 25)
|
||||
|
||||
while True:
|
||||
# Move forward
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user