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
1 changed files with 2 additions and 2 deletions

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**: