mirror of
https://github.com/kidoman/embd
synced 2024-12-22 21:00:05 +01:00
pca9685: allow it to be initialised with default frequency
This commit is contained in:
parent
043867e1f5
commit
f61f69e51e
@ -39,11 +39,10 @@ type PCA9685 struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new PCA9685 interface.
|
// New creates a new PCA9685 interface.
|
||||||
func New(bus i2c.Bus, addr byte, freq int) *PCA9685 {
|
func New(bus i2c.Bus, addr byte) *PCA9685 {
|
||||||
return &PCA9685{
|
return &PCA9685{
|
||||||
Bus: bus,
|
Bus: bus,
|
||||||
Addr: addr,
|
Addr: addr,
|
||||||
Freq: freq,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user