[Porting issues] SparkFun_APDS9960 (unresolved)

Link: https://github.com/sparkfun/SparkFun_APDS-9960_Sensor_Arduino_Library

Issue 1: Arduino.h: No such file or directory

Fix: added an “Arduino.h” in the lib/src

The content is simply:

#include "Particle.h"

Issue 2: library is using #include <Arduino.h>

Fix: change to #include "Arduino.h" instead

Issue 3: conflicting ERROR and DEBUG

The library is using the same #defines in the firmware

#define DEBUG                   0
#define ERROR                   0xFF

Status:

  • code is not compiling with the changes above

I ran into the same #define issues when I used this library in a project. This will need a pull request to the upstream library to fix.

please try this again when 0.6.1-rc.2 is released :wink: