Skip to content

Commit

Permalink
json to js in readmes
Browse files Browse the repository at this point in the history
PUBLISHED_FROM=7b861676f7f9ee75382f4250d3e8ecd7c38ce6c1
  • Loading branch information
cpq authored and cesantabot committed Jan 2, 2018
1 parent 618258b commit 0581e2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Below is a list of exported RPC methods and arguments:

## GPIO.Read
Set given pin in INPUT mode, read GPIO pin, return its value. Arguments:
```json
```javascript
{
"pin": 15 // Required. Pin number.
}
Expand All @@ -25,7 +25,7 @@ Example usage:

## GPIO.Write
Set given pin in OUTPUT mode, set GPIO pin. Arguments:
```json
```javascript
{
"pin": 15, // Required. Pin number.
"value": 0 // Required. Voltage level. Either 0 (low) or 1 (high).
Expand All @@ -39,7 +39,7 @@ Example usage:

## GPIO.Toggle
Set given pin in OUTPUT mode, toggle voltage level and return that level. Arguments:
```json
```javascript
{
"pin: 15 // Required. Pin number.
}
Expand All @@ -58,7 +58,7 @@ Example usage:
## GPIO.SetIntHandler
Set interrupt handler on a GPIO pin that calls a remote RPC service
on interrupt. Arguments:
```json
```javascript
{
"pin": 15, // Required. Pin number.
"edge": "any", // Required. One of: "pos", "neg", "any".
Expand Down

0 comments on commit 0581e2b

Please sign in to comment.