diff --git a/README.md b/README.md index e3526ab..aeced2f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ When the button is pressed the LED should turn on, when it's released the LED should turn off. This can be achieved with the following code: ```js -var Gpio = require('onoff').Gpio, +var Gpio = require('arietta-onoff').Gpio, led = new Gpio(64, 'out'), button = new Gpio(81, 'in', 'both'); @@ -49,7 +49,7 @@ ctrl-c gracefully and bails out on error. The resources used by the led and button Gpio objects are released by calling their unexport method. ```js -var Gpio = require('onoff').Gpio, +var Gpio = require('arietta-onoff').Gpio, led = new Gpio(64, 'out'), button = new Gpio(81, 'in', 'both'); @@ -180,7 +180,7 @@ Reverse the effect of exporting the GPIO to userspace Blink the LED on GPIO #64 for 5 seconds: ```js -var Gpio = require('onoff').Gpio, // Constructor function for Gpio objects. +var Gpio = require('arietta-onoff').Gpio, // Constructor function for Gpio objects. led = new Gpio(64, 'out'), // Export GPIO #64 as an output. iv; @@ -203,7 +203,7 @@ setTimeout(function () { Blink the LED on GPIO #64 for 5 seconds: ```js -var Gpio = require('onoff').Gpio, // Constructor function for Gpio objects. +var Gpio = require('arietta-onoff').Gpio, // Constructor function for Gpio objects. led = new Gpio(64, 'out'); // Export GPIO #64 as an output. // Toggle the state of the LED on GPIO #64 every 200ms 'count' times. diff --git a/package.json b/package.json index 4fdf1b2..33ff24b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arietta-onoff", - "version": "0.1.1", + "version": "0.1.2", "description": "GPIO access and interrupt detection on the ACME Arietta board", "main": "arietta-onoff.js", "repository": {