fixed bug with initialization of i2c option

This commit is contained in:
Simon Pirkelmann 2020-01-12 16:11:58 +01:00
parent aab1b78e8f
commit c1b7640d03

View File

@ -2,7 +2,7 @@ import machine
import sys
from machine import I2C, Pin
i2c = True
i2c = False
if i2c:
import d1motor
else:
@ -100,5 +100,5 @@ class Robot:
del comm_socket
del socket
wall_e = Robot()
wall_e = Robot(i2c=i2c)
wall_e.remote_control()