From 5df157230f11d3e3ed2c9e028aa16930156af899 Mon Sep 17 00:00:00 2001 From: Ron Evans Date: Wed, 16 Oct 2019 21:44:58 +0200 Subject: [PATCH] lis3dh: example uses I2C1 so requires config to specify pins since they are not default Signed-off-by: Ron Evans --- examples/lis3dh/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lis3dh/main.go b/examples/lis3dh/main.go index 6c51d33..cab970e 100644 --- a/examples/lis3dh/main.go +++ b/examples/lis3dh/main.go @@ -11,7 +11,7 @@ import ( var i2c = machine.I2C1 func main() { - i2c.Configure(machine.I2CConfig{}) + i2c.Configure(machine.I2CConfig{SCL: machine.SCL1_PIN, SDA: machine.SDA1_PIN}) accel := lis3dh.New(i2c) accel.Address = lis3dh.Address1 // address on the Circuit Playground Express