Giter Club home page Giter Club logo

Comments (4)

kriswiner avatar kriswiner commented on June 22, 2024

from as7265x.

AlecVercruysse avatar AlecVercruysse commented on June 22, 2024

I took a second look at the register definitions, and I see how each register is unique except for your last 8 definitions for AS72651_CAL_CHAN4. For example, when I compile, I get these warnings:

sketch/AS7265X.h:57:0: warning: "AS72651_CAL_CHAN4_0" redefined
 #define AS72651_CAL_CHAN4_0         0x28

 ^
sketch/AS7265X.h:52:0: note: this is the location of the previous definition
 #define AS72651_CAL_CHAN4_0         0x24

 ^
sketch/AS7265X.h:58:0: warning: "AS72651_CAL_CHAN4_1" redefined
 #define AS72651_CAL_CHAN4_1         0x29

 ^
sketch/AS7265X.h:53:0: note: this is the location of the previous definition
 #define AS72651_CAL_CHAN4_1         0x25

 ^
sketch/AS7265X.h:59:0: warning: "AS72651_CAL_CHAN4_2" redefined
 #define AS72651_CAL_CHAN4_2         0x2A

 ^
sketch/AS7265X.h:54:0: note: this is the location of the previous definition
 #define AS72651_CAL_CHAN4_2         0x26

 ^
sketch/AS7265X.h:60:0: warning: "AS72651_CAL_CHAN4_3" redefined
 #define AS72651_CAL_CHAN4_3         0x2B

 ^
sketch/AS7265X.h:55:0: note: this is the location of the previous definition
 #define AS72651_CAL_CHAN4_3         0x27

 ^

Since these values are being redefined, what is the purpose of your first 4 definitions for CHAN4?

Furthermore, I'm not quite sure where these definitions are used (and therefore their significance), I couldn't find any usages in anywhere in your repo. Forgive me if I'm missing something, I'm quite inexperienced with C++.

from as7265x.

kriswiner avatar kriswiner commented on June 22, 2024

from as7265x.

AlecVercruysse avatar AlecVercruysse commented on June 22, 2024

Thanks, got it working. Turns out my other issues were because I forgot to wire up the INT pin... whoops. Also worth noting (if anyone else has issues getting the code to work) I had to change the intPin value from pin 8 to 3 as the arduino mega (and most other arduinos) don't support adding an interrupt on pin 8. Thanks for your help!

from as7265x.

Related Issues (5)

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.