GPIO over Raspberry Pi 3 model B using Node.js
<p>I am trying to blink the led using raspberry pi 3 model B, </p>

<p>I have all the required modules installed on my machine i.e. npm , nodejs , pi-gpio (fixed the minor changes to detect the gpio )</p>

<p>Code is  :</p>

<pre><code>var gpio = require("pi-gpio");

gpio.open(16, "output", function(err) {     
gpio.write(16, 1, function() {          
        gpio.close(16);                     
    });
});
//reading the data on the pin i.e pin : 16 
gpio.open(16, "output", function (err) {
    gpio.read(16, function (err, value) {
         console.log("Data is "+ value);
         gpio.close(16);
    });
});
</code></pre>

<p>But above code throws error while running it,</p>

<p><strong>node app.js</strong></p>

<p>error : 
<strong>Error when trying to open pin 16
gpio-admin : could not flush data to /sys/class/gpio/export : Device or resource busy</strong></p>

<p>Thanks in advance</p>

<p>Any links where I can see the circuit diagram and code.</p>

<p>Concern : I dont want to change the platform i.e. node.js</p>

<p>pi-gpio which i am using is : <a href="https://github.com/rakeshpai/pi-gpio" rel="nofollow">https://github.com/rakeshpai/pi-gpio</a></p>