Skip to content
This repository has been archived by the owner on Mar 3, 2018. It is now read-only.

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fivdi committed Oct 18, 2014
1 parent 9357b3c commit 2e7bf93
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/ain.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Creates an Ain (analog input) object for reading the value from an analog
capable input pin.

The following options are supported:
- vsenseScale: number (optional, default 100)
- vsenseScale - number (optional, default 100)

### Method: rawValue()
Returns the raw value of the analog input pin.
Expand Down
4 changes: 2 additions & 2 deletions doc/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ button is pressed or released. The options object can be used to configure
the debounce interval, pull type, and active state for the button.

The following options are supported:
- debounceInterval: debounce interval in milliseconds (optional, default 50 milliseconds)
- pullType: pullType.NONE, pullTypes.PULL_UP, or pullTypes.PULL_DOWN (optional, default pullTypes.PULL_UP)
- debounceInterval - debounce interval in milliseconds (optional, default 50 milliseconds)
- pullType - pullType.NONE, pullTypes.PULL_UP, or pullTypes.PULL_DOWN (optional, default pullTypes.PULL_UP)
- isActiveLow - true or false (optional, default true)

### Event: 'ready'
Expand Down
6 changes: 3 additions & 3 deletions doc/gpio.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Gpio Class - General Purpose Input Output

Gpio objects can be used to interact with GPIOs. They support input, output,
interrupt detection, pull-up resistors, and pull-down resistors.
Gpio objects can be used to control GPIOs. They support input, output, interrupt
detection, pull-up resistors, and pull-down resistors.

The following circuit shows how to wire a button to pin 24 and an LED to pin
26 on the P9 header. When the button is pressed, P9_24 will be pulled low.
Expand Down Expand Up @@ -40,7 +40,7 @@ The following options are supported:
- direction - Gpio.IN, Gpio.OUT, Gpio.OUT_HIGH, or Gpio.OUT_LOW (optional, default Gpio.OUT)
- edge - Gpio.NONE, Gpio.FALLING, Gpio.RISING, or Gpio.BOTH (optional, default Gpio.NONE)
- isActiveLow - true or false (optional, default false)
- pullType: pullType.NONE, pullTypes.PULL_UP, or pullTypes.PULL_DOWN (optional, default pullTypes.NONE)
- pullType - pullType.NONE, pullTypes.PULL_UP, or pullTypes.PULL_DOWN (optional, default pullTypes.NONE)

### Method: direction(value)
- value - Gpio.IN or Gpio.OUT (optional)
Expand Down
6 changes: 3 additions & 3 deletions doc/pwm.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ frequency and duty cycle. Additional options are available for configuring the
PWM polarity and whether or not the PWM signal is initially enabled.

The following options are supported:
- period: period in nannoseconds (optional, default 500000 nanoseconds)
- duty: duty in nanoseconds (optional, default 0 nanoseconds)
- enabled: true or false (optional, default true)
- period - period in nannoseconds (optional, default 500000 nanoseconds)
- duty - duty in nanoseconds (optional, default 0 nanoseconds)
- enabled - true or false (optional, default true)
- polarity - Pwm.LOW or Pwm.HIGH (optional, default Pwm.LOW)

### Method: period(value)
Expand Down
8 changes: 4 additions & 4 deletions doc/uart.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ communication. A Uart is a streams2 duplex stream. The options object can be
used to configure the various aspects of the UART such as its baud rate.

The following options are supported:
- baudRate: one of the [baud rate constants](https://github.com/fivdi/brkontru/blob/master/doc/uart.md#baud-rate-constants) (optional, default Uart.B38400)
- highWaterMark: number (optional, default 512)
- encoding: string (optional, default null)
- baudRate - one of the [baud rate constants](https://github.com/fivdi/brkontru/blob/master/doc/uart.md#baud-rate-constants) (optional, default Uart.B38400)
- highWaterMark - number (optional, default 512)
- encoding - string (optional, default null)

Uart is a streams2 [Duplex](http://nodejs.org/api/stream.html#stream_class_stream_duplex)
stream that implements both the
Expand All @@ -21,7 +21,7 @@ interfaces. Internally, [Duplexify](https://www.npmjs.org/package/duplexify)
is used to achaive this.

### Method: baudRate(rate)
- rate: one of the [baud rate constants](https://github.com/fivdi/brkontru/blob/master/doc/uart.md#baud-rate-constants) (optional)
- rate - one of the [baud rate constants](https://github.com/fivdi/brkontru/blob/master/doc/uart.md#baud-rate-constants) (optional)

Returns the baud rate of the UART if no rate is specified, else sets the baud
rate to the specified rate.
Expand Down

0 comments on commit 2e7bf93

Please sign in to comment.