mirror of
https://github.com/kidoman/embd
synced 2024-12-22 12:50:19 +01:00
doc: fixes
This commit is contained in:
parent
c3419d3e1b
commit
193385104d
@ -42,6 +42,8 @@ Even shorter while prototyping:
|
|||||||
...
|
...
|
||||||
embd.ToggleLED(3)
|
embd.ToggleLED(3)
|
||||||
|
|
||||||
|
NB: **3** == **USR3** for all intents and purposes. The driver is smart enough to figure all this out.
|
||||||
|
|
||||||
BBB + **PWM**:
|
BBB + **PWM**:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/kidoman/embd"
|
||||||
@ -54,8 +56,6 @@ BBB + **PWM**:
|
|||||||
...
|
...
|
||||||
pwm.SetDuty(1000)
|
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:
|
Control **GPIO** pins on the RaspberryPi / BeagleBone Black:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/kidoman/embd"
|
||||||
@ -108,6 +108,7 @@ platforms.
|
|||||||
|
|
||||||
* **Digital GPIO** [Documentation](http://godoc.org/github.com/kidoman/embd#DigitalPin)
|
* **Digital GPIO** [Documentation](http://godoc.org/github.com/kidoman/embd#DigitalPin)
|
||||||
* **Analog GPIO** [Documentation](http://godoc.org/github.com/kidoman/embd#AnalogPin)
|
* **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)
|
* **I2C** [Documentation](http://godoc.org/github.com/kidoman/embd#I2CBus)
|
||||||
* **LED** [Documentation](http://godoc.org/github.com/kidoman/embd#LED)
|
* **LED** [Documentation](http://godoc.org/github.com/kidoman/embd#LED)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user