From 0088515be73408ad9699f9e55bc7551c801da378 Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Sun, 27 Dec 2015 16:26:14 -0500 Subject: [PATCH] Change sensortest for new MPU6050 module. --- test/sensortest.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/sensortest.go b/test/sensortest.go index a778ee8c4..11aff6c52 100644 --- a/test/sensortest.go +++ b/test/sensortest.go @@ -3,13 +3,10 @@ package main import ( "../mpu6050" "fmt" - "github.com/kidoman/embd" - _ "github.com/kidoman/embd/host/all" "net" "time" ) -var bus embd.I2CBus var attSensor *mpu6050.MPU6050 func readMPU6050() (float64, float64) { @@ -19,8 +16,7 @@ func readMPU6050() (float64, float64) { } func initMPU6050() { - bus = embd.NewI2CBus(1) - attSensor = mpu6050.New(bus) + attSensor = mpu6050.New() } func main() {