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:
parent
166c2b1825
commit
f34c59d224
@ -17,10 +17,12 @@ func main() {
|
|||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
pwm := pca9685.New(bus, 0x42, 50)
|
pwm := pca9685.New(bus, 0x41, 50)
|
||||||
|
pwm.Debug = true
|
||||||
defer pwm.Close()
|
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)
|
c := make(chan os.Signal, 1)
|
||||||
signal.Notify(c, os.Interrupt, os.Kill)
|
signal.Notify(c, os.Interrupt, os.Kill)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user