Skip to content

Commit

Permalink
Add missing grove driver alias
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Jul 10, 2015
1 parent f70703b commit d18d6cd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions platforms/i2c/grove_drivers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package i2c

import "github.com/hybridgroup/gobot"

var _ gobot.Driver = (*GroveLcdDriver)(nil)
var _ gobot.Driver = (*GroveAccelerometerDriver)(nil)

type GroveLcdDriver struct {
*JHD1313M1Driver
}

type GroveAccelerometerDriver struct {
*MMA7660Driver
}

func NewGroveLcdDriver(a I2c, name string) *GroveLcdDriver {
return &GroveLcdDriver{
JHD1313M1Driver: NewJHD1313M1Driver(a, name),
}
}

func NewGroveAccelerometerDriver(a I2c, name string) *GroveAccelerometerDriver {
return &GroveAccelerometerDriver{
MMA7660Driver: NewMMA7660Driver(a, name),
}
}

0 comments on commit d18d6cd

Please sign in to comment.