Introducing the Rpi_photocell gem

To use this gem you will need the following:

Connections

Make the following physical wiring connections:

Usage

require 'rpi_photocell'

RPiPhotocell.new.read
#=> 642

Note: The value ranges from 0-1023, with the value decreasing the darker it gets, and increasing the brighter it gets.

Resources