This is great, and I even bought a couple so I can include this hardware in my Raspberry Pi work I've been doing. I don't have any comments on the code as of yet... I'll report back here after the units arrive and I've had time to read the datasheet and do some testing.

If you do a fair amount of work on stuff like this, you may be interested in checking out some of my mentioned RPi stuff in my CPAN home page (the RPi::* and WiringPi::API may be the ones of interest).

I do have proper light meters as the purpose for my RPi work started off as a project to automate indoor grow rooms, but this hardware will fit in nicely (I admit I was having so much fun writing this code, that I would randomly just buy different ICs just to get familiar with programming them). There are apps out there for smartphones that are reasonably accurate (at least accurate enough to tell whether your numbers are within a reasonable range). You may want to take a look at some of them.


In reply to Re: Human-visible light levels - Adafruit Breakout board with I2C by stevieb
in thread Human-visible light levels - Adafruit Breakout board with I2C by anita2R

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.