From 0581e2bf3cb2fc31c48c7df054981380fae7077c Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 2 Jan 2018 14:33:39 +0000 Subject: [PATCH] json to js in readmes PUBLISHED_FROM=7b861676f7f9ee75382f4250d3e8ecd7c38ce6c1 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e39fa6d..54c7277 100644 --- a/README.md +++ b/README.md @@ -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. } @@ -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). @@ -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. } @@ -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".