set more sane defaults

This commit is contained in:
2017-12-13 16:29:31 +01:00
parent a32f9312f7
commit 413ee27418
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)