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 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()