set more sane defaults
This commit is contained in:
@@ -6,4 +6,4 @@ pca9685:
|
|||||||
device: "dev/i2c-2"
|
device: "dev/i2c-2"
|
||||||
address: 0x40
|
address: 0x40
|
||||||
minpulse: 0
|
minpulse: 0
|
||||||
maxpulse: 1000
|
maxpulse: 65535
|
||||||
|
2
main.go
2
main.go
@@ -133,7 +133,7 @@ func main() {
|
|||||||
check(err)
|
check(err)
|
||||||
defer i2cDevice.Close()
|
defer i2cDevice.Close()
|
||||||
|
|
||||||
pca9685 = createPCA9685(i2cDevice, "PWM Controller", config.Pca9685.MinPulse, config.Pca9685.MaxPulse, logging.MustGetLogger("PCA9685"))
|
pca9685 = createPCA9685(i2cDevice, config.Name, config.Pca9685.MinPulse, config.Pca9685.MaxPulse, logging.MustGetLogger("PCA9685"))
|
||||||
pca9685.Init()
|
pca9685.Init()
|
||||||
|
|
||||||
pwmMap = make(map[int32]*Pwm, 1)
|
pwmMap = make(map[int32]*Pwm, 1)
|
||||||
|
Reference in New Issue
Block a user