1. 首页
  2. 数据库
  3. 其它
  4. spi设备:使用Node.js进行SPI串行总线访问 源码

spi设备:使用Node.js进行SPI串行总线访问 源码

上传者: 2021-02-16 19:47:28上传 ZIP文件 259.96KB 热度 25次
SPI设备 在Raspberry Pi或BeagleBone等Linux板上使用Node.js进行SPI串行总线访问。 所有方法都有异步和同步形式。 spi设备支持Node.js版本8、10、12、13和14。 内容 安装 npm install spi-device 用法 使用连接到MCP3008 SPI A / D转换器上通道5的TMP36模拟温度传感器确定温度。 const spi = require ( 'spi-device' ) ; // The MCP3008 is on bus 0 and it's device 0 const mcp3008 = spi . open (
下载地址
用户评论