Giter VIP home page Giter VIP logo

Comments (4)

ShawnHymel avatar ShawnHymel commented on May 19, 2024 1

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.

loricrotser avatar loricrotser commented on May 19, 2024

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.

HamzaHajeir avatar HamzaHajeir commented on May 19, 2024

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.

aapris avatar aapris commented on May 19, 2024

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 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.