热电偶-max31855
从热电偶放大器MAX31855读取数据。
var tessel = require ( 'tessel' ) ;
var thermocouplelib = require ( 'thermocouple-max31855' ) ;
var sensor = thermocouplelib . use ( tessel . port [ 'GPIO' ] , {
cs : 0 ,
poll : 10
} ) ;
sensor . on ( 'measurement' , function ( data ) {
console . log ( data ) ;
} )
用法
要安装库:
npm install thermocouple-max31855
要将其包含在您的代码中:
var thermocouplelib = require('thermo
1