Skip to content

Commit

Permalink
Increased PWM frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
Demo User authored and deadprogram committed Mar 31, 2017
1 parent 296e2c3 commit aaa7497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/beaglebone/beaglebone_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (b *Adaptor) pwmWrite(pin string, val byte) (err error) {
if err != nil {
return
}
period := 500000.0
period := 50000.0
duty := gobot.FromScale(float64(val), 0, 255.0)
return b.pwmPins[i].pwmWrite(strconv.Itoa(int(period)), strconv.Itoa(int(period*duty)))
}
Expand Down

0 comments on commit aaa7497

Please sign in to comment.