1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 11:57:38 +02:00

simplify package structure

This commit is contained in:
Karan Misra 2014-03-03 00:51:23 +05:30
parent 3cae4064dc
commit 36f2c0486d
41 changed files with 736 additions and 885 deletions

View file

@ -6,8 +6,7 @@ import (
"math"
"sync"
"time"
"github.com/kidoman/embd/i2c"
"github.com/kidoman/embd"
"github.com/kidoman/embd/util"
)
@ -28,7 +27,7 @@ const (
// PCA9685 represents a PCA9685 PWM generator.
type PCA9685 struct {
Bus i2c.Bus
Bus embd.I2CBus
Addr byte
Freq int
@ -39,7 +38,7 @@ type PCA9685 struct {
}
// New creates a new PCA9685 interface.
func New(bus i2c.Bus, addr byte) *PCA9685 {
func New(bus embd.I2CBus, addr byte) *PCA9685 {
return &PCA9685{
Bus: bus,
Addr: addr,