Skip to content

Commit

Permalink
fix README formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Wu committed Oct 2, 2012
1 parent 60f11e6 commit 7a7004f
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions BB10/LED/README.md
Expand Up @@ -26,23 +26,22 @@ Whenever you use the below feature id in any of your WebWorks applications this
<feature id="webworks.bbalert.led" required="true" version="1.0.0.0" />

## Summary
var id = webworks.bbalert.led.startLed([String: color], [String: blinkCount])

Parameters:
color: hex string with with format "RRGGBB", default: "FF0000"
blinkCount: String Integer >=0, default: "0" (0 means Blink indefinitely until stopLed command is issued)

Return:
request id - used to reference the LED request

webworks.bbalert.led.stopLed([String:id])

Parameter:
id: request id - given when startLed command was issued.


var id = webworks.bbalert.led.startLed([String: color], [String: blinkCount])

Parameters:
color: hex string with with format "RRGGBB", default: "FF0000"
blinkCount: String Integer >=0, default: "0" (0 means Blink indefinitely until stopLed command is issued)

Return:
request id - used to reference the LED request

webworks.bbalert.led.stopLed([String:id])
Parameter:
id: request id - given when startLed command was issued.

Example:
Example:

<script type="text/javascript" >
var id = webworks.bbalert.led.startLed("FFFF00", "10");
webworks.bbalert.led.stopLed(id)
Expand Down

0 comments on commit 7a7004f

Please sign in to comment.