Translations:RASPBERRY PI Arduino Shield ADD-ON/9/zh-cn

From ITEAD Wiki
Revision as of 03:26, 2 December 2014 by ITead (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

使用说明

  • 将RpiArduinoShieldAddon插到RPI V2上面,将SHT10通过电子积木4pin连线接到IIC电子积木接口上,上电。
  • 从https://github.com/itead/SDK 下载SDK并安装。
  • 修改文件 ReadSHT1xValues.ino
修改后的编码如下:
define dataPin 3
define clockPin 5
  • 进入目录 libraries/itead_SHT1x/examples/ReadSHT1xValues, 编译运行 ReadSHT1xValues.ino
编译ReadSHT1xValues.ino的指令如下
$ iteadcompile ReadSHT1xValues ReadSHT1xValues.ino
运行指令如下
$ sudo ./ ReadSHT1xValues
  • 最后可以从终端上读到传感器传回的温湿度值