ESP8266 + Arduino IDE 1.6.5 + BH1750 光度感應器 快速測試
為了能快速測試 BH1750 加在 ESP8266 上 ,盡量使用 Arduino 原始程式上的腳位,我下載的BH1750 程式庫的腳位如下:
/*
This is a simple code to test BH1750FVI Light senosr
communicate using I2C Protocol
this library enable 2 slave device address
Main address 0x23
secondary address 0x5C
connect this sensor as following :
VCC >>> 3.3V
SDA >>> A4
SCL >>> A5
addr >> A3
Gnd >>>Gnd
Written By : Mohannad Rawashdeh
*/
程式是由 Mohannad Rawashdeh 撰寫 。
測試的輸出如下:
/*
This is a simple code to test BH1750FVI Light senosr
communicate using I2C Protocol
this library enable 2 slave device address
Main address 0x23
secondary address 0x5C
connect this sensor as following :
VCC >>> 3.3V
SDA >>> A4
SCL >>> A5
addr >> A3
Gnd >>>Gnd
Written By : Mohannad Rawashdeh
*/
程式是由 Mohannad Rawashdeh 撰寫 。
NodeMCU+BH1750 |
NodeMcu+BH1750 |
where is code bro?
回覆刪除