All i want to do i something real basic, use the rpi- gpio module to turn a led on. Using the following code
var gpio = require('rpi-gpio');
gpio.setup(11, gpio.DIR_OUT, write);
function write() {
gpio.write(11, true, function(err) {
if (err) throw err;
console.log('Written to pin');
});
}
The code is taken from https://npmjs.org/package/rpi-gpio
So when i run this code all i see is in the pi terminal window " written to pin"
but i don't get nothing on the multimeter. I have hooked up the negative to pin 6 and positive to pin 11. what am i doing wrong.
i also have node.js installed conformed it works +rpi-gpio.
Problem is I am beginner don't really understood the technical details. I just know that i want to do is like those guys on youtube who turn leds on off using node.js and rpi-gpio.
helps!!!!! or any thoughts
thanks in advance