diff --git a/platforms/i2c/grove_drivers.go b/platforms/i2c/grove_drivers.go new file mode 100644 index 00000000..f4f8d6bd --- /dev/null +++ b/platforms/i2c/grove_drivers.go @@ -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), + } +}