# tsl2561

> node interface for the TSL2561 luminosity sensor

Latest version **0.0.1** (published 2014-10-08) · BSD license · 0 weekly downloads

## Install

```sh
npm install tsl2561
pnpm add tsl2561
yarn add tsl2561
bun add tsl2561
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-10-08 |
| First published | 2014-10-08 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 3 |
| Author | John Sonnenschein |
| Maintainers | sonnens |

## Links

- npm: https://www.npmjs.com/package/tsl2561
- Repository: https://github.com/sonnens/node-tsl2561
- Issues: https://github.com/sonnens/node-tsl2561/issues
- npm.io page: https://npm.io/package/tsl2561

## Recent versions

- 0.0.1 (latest) — 2014-10-08

## README

# tsl2561 

node interface for the TSL2561 luminosity sensor

## Install
````bash
$ npm install tsl2561
````

## Usage

```javascript
var tsl2561 = require('tsl2561');

var device = "/dev/i2c-1"
var address = 0x39;

var sensor = new tsl2561.Tsl2561(device, address);

var luminosity = sensor.lux();

````

## Raspberry Pi Setup


````bash
$ sudo vi /etc/modules
````

Add these two lines

````bash
i2c-bcm2708 
i2c-dev
````

````bash
$ sudo vi /etc/modprobe.d/raspi-blacklist.conf
````

Comment out blacklist i2c-bcm2708

````
#blacklist i2c-bcm2708
````

Load kernel module

````bash
$ sudo modprobe i2c-bcm2708

````

## Questions?

http://www.twitter.com/johnnysunshine

---
_Source: https://npm.io/package/tsl2561 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
