1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00

servo: sample debug turned

This commit is contained in:
Karan Misra 2014-01-08 02:49:34 +05:30
parent 166c2b1825
commit f34c59d224

View File

@ -17,10 +17,12 @@ func main() {
log.Panic(err)
}
pwm := pca9685.New(bus, 0x42, 50)
pwm := pca9685.New(bus, 0x41, 50)
pwm.Debug = true
defer pwm.Close()
servo := servo.New(pwm, 50, 0, 1, 2.5)
servo := servo.New(pwm, 50, 15, 1, 2.5)
servo.Debug = true
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, os.Kill)