vl53l0x:vl53l0x设备的Node.js库

时间:2021-05-06 21:07:09
【文件属性】:
文件名称:vl53l0x:vl53l0x设备的Node.js库
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-06 21:07:09
JavaScript vl53l0x Node.js库。 npm install vl53l0x i2c-bus ...或者,使用进行开发! npm install vl53l0x i2cdriver 用 const VL53L0X = require ( 'vl53l0x' ) const args = [ 1 , 0x29 ] // Optionally, try developing with an i2cdriver! // const args = ['/dev/tty.usbserial-DO01INSW', 0x29, 'i2cdriver/i2c-bus'] VL53L0X ( ... args ) . then ( async ( vl53l0x ) => { while ( true ) { console . log ( await vl53l0x . measure

网友评论