1.0.8 • Published 7 years ago

nodegpio v1.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

nodegpio

use:

npm install nodegpio

example 1

var nodegpio=require('nodegpio');
nodegpio.set([
        {number:21,type:'out'},
        {number:12,type:'in'}
    ],function(){
    nodegpio.out(21,1);
});

example 2

var nodegpio=require('nodegpio');
nodegpio.set([
		{number:21,type:'out'},
		{number:12,type:'in'}
	],function(){
        setInterval(function(){
            nodegpio.in(12,function(value){
                if(value===0){
                    //console.log('ok');
                    nodegpio.out(21,1);
                }else{
                    nodegpio.out(21,0);
                }
            });
        },500);
});

新浪微博 @谷三井

1.0.8

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago