Created
December 17, 2015 00:52
-
-
Save ledongthuc/c72683372a82bcf713c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "github.com/kidoman/embd" | |
... | |
embd.InitGPIO() | |
defer embd.CloseGPIO() | |
... | |
pwm, _ := embd.NewPWMPin("P9_14") | |
defer pwm.Close() | |
... | |
pwm.SetDuty(1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment