1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 03:47:33 +02:00

- support for servo blaster

- servo requires the underlying PWM to support a SetMicroseconds method
This commit is contained in:
Karan Misra 2014-01-09 02:35:18 +05:30
parent cce1943e34
commit 7c32e907e1
7 changed files with 124 additions and 19 deletions

View file

@ -16,11 +16,11 @@ func main() {
log.Panic(err)
}
pca9685 := pca9685.New(bus, 0x42, 1000)
pca9685 := pca9685.New(bus, 0x41, 1000)
pca9685.Debug = true
defer pca9685.Close()
if err := pca9685.SetPwm(0, 0, 2000); err != nil {
if err := pca9685.SetPwm(15, 0, 2000); err != nil {
log.Panic(err)
}