From c1b7640d033ca85e3b5a74c3040dca717213ed07 Mon Sep 17 00:00:00 2001 From: spirkelmann Date: Sun, 12 Jan 2020 16:11:58 +0100 Subject: [PATCH] fixed bug with initialization of i2c option --- micropython_firmware/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython_firmware/main.py b/micropython_firmware/main.py index e1ae1cb..33d0412 100644 --- a/micropython_firmware/main.py +++ b/micropython_firmware/main.py @@ -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()