Skip to content

Commit

Permalink
Merge pull request #17 from TizenTeam/sandbox/rzr/review/master
Browse files Browse the repository at this point in the history
doc: Add links and usage for iotjs
  • Loading branch information
miroRucka authored Nov 16, 2018
2 parents 1301217 + 1e7660a commit 8da20b1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,31 @@

light sensor BH1750 controlled by raspberry pi based on i2c lib

[![GitHub forks](https://img.shields.io/github/forks/miroRucka/bh1750.svg?style=social&label=Fork&maxAge=2592000)](https://GitHub.com/miroRucka/bh1750/network/)
[![dependencies Status](https://david-dm.org/miroRucka/bh1750/status.svg)](https://david-dm.org/miroRucka/generic-sensor-lite)

[![NPM](https://nodei.co/npm/bh1750.png)](https://npmjs.org/package/bh1750)

## Usage

### Usage with Node.JS runtime

```sh
npm install
npm test
# light value is: 20 lx

```

### Usage with IoT.js runtime

For constrained environments:

```sh
iotjs example/index.js
# light value is: 20.833333333333336 lx
```

### Code

```javascript
Expand Down Expand Up @@ -93,3 +116,4 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* https://www.npmjs.com/package/bh1750
* https://www.rohm.com/documents/11308/12926/CNA09016_sg.pdf
* http://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf
* https://github.com/rzr/generic-sensors-lite

0 comments on commit 8da20b1

Please sign in to comment.