Skip to content

sonnens/node-tsl2561

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsl2561

node interface for the TSL2561 luminosity sensor

Install

$ npm install tsl2561

Usage

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

$ sudo vi /etc/modules

Add these two lines

i2c-bcm2708 
i2c-dev
$ sudo vi /etc/modprobe.d/raspi-blacklist.conf

Comment out blacklist i2c-bcm2708

#blacklist i2c-bcm2708

Load kernel module

$ sudo modprobe i2c-bcm2708

Questions?

http://www.twitter.com/johnnysunshine

About

node.js interface for the TSL2561 luminosity sensor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published