Comments (4)
from as7265x.
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.
from as7265x.
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)
- images HOT 1
- Uno - Default parameters stuck on status ? HOT 6
- Unit Conversion HOT 17
- PCB with a vertical sensor layout HOT 7
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 as7265x.