Sample Test Program for SparkFun APDS9960 Library. Currently only tested with HRM1017.

Dependencies:   SparkFun_APDS9960 mbed

Fork of SparkFun_APDS9960_Sample by devsar devsar

Sample Program for APDS9960 library using HRM1017. Tested Pin Connection:

APDS9960 <=======> HRM1017

  • VL (Not Connected)
  • GND <=======> GND (0V)
  • VCC <=======> VDD (3.3V)
  • SDA <=======> P0_22 (sda I2C0)
  • SCL <=======> P0_20 (scl I2C0)
  • INT <=======> P0_2

Gesture result is printed out using Serial (PC).

PS: Currently planning to use HRM1017 BLE to send the result to smartphone.

APDS9960 Pinout: https://learn.sparkfun.com/tutorials/apds-9960-rgb-and-gesture-sensor-hookup-guide

HRM1017 Pinout: http://developer.mbed.org/platforms/mbed-HRM1017/

Revision:
1:530e1adf4cf4
Parent:
0:86488c9c33d7
--- a/main.cpp	Sun Apr 05 13:51:12 2015 +0000
+++ b/main.cpp	Sun Apr 05 13:54:46 2015 +0000
@@ -9,6 +9,8 @@
  *   SDA <----------> P0_22 (sda I2C0)
  *   SCL <----------> P0_20 (scl I2C0)
  *   INT <----------> P0_2
+ *
+ * Result will be print out to serial.
  */
 
 #include "mbed.h"