changeset 5:4c9750b1eb38 default tip

Merged in sirburton/edited-the-example-code-frequency-must-b-1531288375207 (pull request #1) Edited the example code.
author Aaron Burton <aaron.burton@aisutah.org>
date Wed, 11 Jul 2018 05:53:45 +0000
parents a6d659db76a3 (current diff) 1c7d419b9009 (diff)
children
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/d1motor.py	Wed Apr 26 00:46:14 2017 +0200
+++ b/d1motor.py	Wed Jul 11 05:53:45 2018 +0000
@@ -1,7 +1,7 @@
 """
 import d1motor
 from machine import I2C, Pin
-i2c = I2C(Pin(5), Pin(4), freq=10000)
+i2c = I2C(Pin(5), Pin(4), freq=100000)
 m0 = d1motor.Motor(0, i2c)
 m1 = d1motor.Motor(1, i2c)
 m0.speed(5000)