fixed bug with initialization of i2c option
This commit is contained in:
parent
aab1b78e8f
commit
c1b7640d03
|
@ -2,7 +2,7 @@ import machine
|
||||||
import sys
|
import sys
|
||||||
from machine import I2C, Pin
|
from machine import I2C, Pin
|
||||||
|
|
||||||
i2c = True
|
i2c = False
|
||||||
if i2c:
|
if i2c:
|
||||||
import d1motor
|
import d1motor
|
||||||
else:
|
else:
|
||||||
|
@ -100,5 +100,5 @@ class Robot:
|
||||||
del comm_socket
|
del comm_socket
|
||||||
del socket
|
del socket
|
||||||
|
|
||||||
wall_e = Robot()
|
wall_e = Robot(i2c=i2c)
|
||||||
wall_e.remote_control()
|
wall_e.remote_control()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user