/SparkFun_APDS-9960_Sensor_Arduino_Library

SparkFun APDS-9960 RGB/Gesture Sensor Arduino Library - Modified For esp8266

Primary LanguageC++OtherNOASSERTION

DFRobot and NodeMCU Support

Incorporates changes to support DFRobot's version of the APDS-9960 sensor (SEN0817). DFRobot's sensor has a different orientation compared to the SparkFun device thus the gesture decoding in SparkFun_APDS9960::decodeGesture() in SparkFun_APDS9960.cpp was remapped. See DFRobot's Wiki for instructions on using their device.

This fork is a merger of Jonathan Ulmer's modifications to the SparkFun library to support the ESP8266 (though I backed out the change to the LEDBOOST given it worked fine with DFRobot's device with original code) and DFRobot's version of the library (only the remapped gesture decoding code in SparkFun_APDS9960::decodeGesture() to handle the change in orientation).

Original README from Jonathan Ulmer's modifications:

SparkFun APDS9960 RGB and Gesture Sensor Arduino Library -- Modified for esp8266

Made a few changes to get this to work with esp8266.

The main two are:

  • Removing wire.begin() from SparkFun_APDS9960.cpp and moving it into the examples so that the pins it uses can be specified in your sketch

  • Changed the LED_BOOST_300 to LED_BOOST_100 in SparkFun_APDS9960.cpp as I couldn't get the gesture sensor to work without changing this

See Sparkfun's original library here https://github.com/sparkfun/SparkFun_APDS-9960_Sensor_Arduino_Library for usage.