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

doc: fixes

This commit is contained in:
Karan Misra 2014-03-29 09:47:22 +05:30
parent c3419d3e1b
commit 193385104d

View File

@ -42,6 +42,8 @@ Even shorter while prototyping:
...
embd.ToggleLED(3)
NB: **3** == **USR3** for all intents and purposes. The driver is smart enough to figure all this out.
BBB + **PWM**:
import "github.com/kidoman/embd"
@ -54,8 +56,6 @@ BBB + **PWM**:
...
pwm.SetDuty(1000)
NB: **3** == **USR3** for all intents and purposes. The driver is smart enough to figure all this out.
Control **GPIO** pins on the RaspberryPi / BeagleBone Black:
import "github.com/kidoman/embd"
@ -108,6 +108,7 @@ platforms.
* **Digital GPIO** [Documentation](http://godoc.org/github.com/kidoman/embd#DigitalPin)
* **Analog GPIO** [Documentation](http://godoc.org/github.com/kidoman/embd#AnalogPin)
* **PWM** [Documentation](http://godoc.org/github.com/kidoman/embd#PWMPin)
* **I2C** [Documentation](http://godoc.org/github.com/kidoman/embd#I2CBus)
* **LED** [Documentation](http://godoc.org/github.com/kidoman/embd#LED)