mirror of
https://github.com/kidoman/embd
synced 2024-12-22 12:50:19 +01:00
doc: make the LED example unambiguous
This commit is contained in:
parent
be0c0daf48
commit
7c51f968af
@ -99,7 +99,7 @@ Use the **LED** driver to toggle LEDs on the BBB:
|
|||||||
embd.InitLED()
|
embd.InitLED()
|
||||||
defer embd.CloseLED()
|
defer embd.CloseLED()
|
||||||
...
|
...
|
||||||
led, err := embd.NewLED("USR3")
|
led, err := embd.NewLED(3)
|
||||||
...
|
...
|
||||||
led.Toggle()
|
led.Toggle()
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ 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.
|
**3** is the same as **USR3** for all intents and purposes. The driver is smart enough to figure all this out.
|
||||||
|
|
||||||
BBB + **PWM**:
|
BBB + **PWM**:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user