diff python/robot.py @ 19:455a46355e72 default tip

Add freq to i2c init
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Thu, 14 Apr 2016 00:05:31 +0200
parents 5c99ed631554
children
line wrap: on
line diff
--- a/python/robot.py	Mon Apr 11 23:37:11 2016 +0200
+++ b/python/robot.py	Thu Apr 14 00:05:31 2016 +0200
@@ -37,7 +37,7 @@
 
 class Robot:
     def __init__(self):
-        self.i2c = I2C(sda=Pin(0), scl=Pin(2))
+        self.i2c = I2C(sda=Pin(0), scl=Pin(2), freq=10000)
         self.legs = (
             Leg(self.i2c, 0, -1,  1),
             Leg(self.i2c, 1, -1, -1),