Comments (4)
The order of the includes seems to matter, and I do not believe that the ESP8266 uses the 'D' prefix for pins. Try this for the beginning of your code:
#include <SparkFun_APDS9960.h>
#include <ESP8266WiFi.h>
#include <Wire.h>
// Pins
#define APDS9960_INT 3
#define MCU_SCL 1
#define MCU_SDA 2
from sparkfun_apds-9960_sensor_arduino_library.
Hello! Did you end up getting this sorted out? From the initial request, it sounds like you are looking for technical assistance; the github issues are used primarily for bugs and pull requests related to the libraries or pcbs. If you still need help, feel free to visit our SparkFun forums and we'll see what we can do to help you out. Thank you!
from sparkfun_apds-9960_sensor_arduino_library.
The error is valid, An enum definition clashes with similar defined in ESP8266
/* State definitions */
enum {
NA_STATE,
NEAR_STATE,
FAR_STATE,
ALL_STATE
};
in wl_definitions.h :
// Default state value for Wifi state field
#define NA_STATE -1
from sparkfun_apds-9960_sensor_arduino_library.
The order of the includes seems to matter - -. Try this for the beginning of your code:
#include <SparkFun_APDS9960.h> #include <ESP8266WiFi.h>
Thank you, this resolved problem in my project.
from sparkfun_apds-9960_sensor_arduino_library.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparkfun_apds-9960_sensor_arduino_library.