1
0
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:
Karan Misra 2014-04-12 10:16:35 +05:30
parent be0c0daf48
commit 7c51f968af

View File

@ -99,7 +99,7 @@ Use the **LED** driver to toggle LEDs on the BBB:
embd.InitLED()
defer embd.CloseLED()
...
led, err := embd.NewLED("USR3")
led, err := embd.NewLED(3)
...
led.Toggle()
@ -112,7 +112,7 @@ 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.
**3** is the same as **USR3** for all intents and purposes. The driver is smart enough to figure all this out.
BBB + **PWM**: