Giter VIP home page Giter VIP logo

sparkfun_isl29125_breakout_arduino_library's Introduction

SparkFun ISL29125 Breakout Arduino Library

ISL29125 Breakout
RGB Light Sensor Breakout-ISL29125 (SEN-12829)

Supporting code for the ISL29125 RGB Light Sensor.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • library.properties - General library properties for the Arduino package manager.

Documentation

  • Hookup Guide - Basic hookup guide for the SparkFun ISL29125 Breakout.
  • Product Repository - Main repository (including hardware files) for the SparkFun ISL29125 Breakout.

License Information

This product is open source!

The code is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

sparkfun_isl29125_breakout_arduino_library's People

Contributors

altaohms avatar loricrotser avatar nseidle avatar robert-hunke avatar sfe-jordan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sparkfun_isl29125_breakout_arduino_library's Issues

Change to bool .begin()

To preserve reverse compatibility, leave .init in place but create new .begin method that returns false if sensor failed to init/respond for some reason.

In Example1_BasicReadings, if(RGB_sensor.begin() == false) then freeze with printed error.

Change example structure

Change to graduated examples:

Example1_BasicReadings
Example2_slightly_more_complex
Exmaple9_crazy weird feature that almost no one will use

Why does init continue after device ID check fails?

I'm trying to work with this driver and I've noticed, amongst other problems, if the init check against the device ID fails, init continues and frequently (always?) returns true.

I'm happy to submit PRs for this and a couple other problems I think I've identified if someone is actually looking and will work with me. Else I'm going to need to write my own driver. Let me know, thanks for the work.

Implement .available()

User should have ability to check if new data is available. Don't rely on a delay in main loop. If sensor doesn't have intrinsic 'data available' bit or option then implement internal timer (lastMeasurementTime). available() should return true once enough measurement time has passed or a data bit gets set (I haven't read the datasheet to know if bit is available).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.