The example code for this sensor compiles just fine with UNO, etc., but when I try to add other sensors, like your RGB sensor and an AS7262 from a different vendor I get these compiler messages. Can you tell what’s going on here? and how to fix it? Is there some unavoidable conflict among these sensors? Yes, I have the sensors connected to a multiplexer because AS7262 and AS7263 have the same fixed I2C address.
In file included from C:\Users\David.000\Documents\Arduino\MultiSpectralNew\MultiSpectralNew.ino:9:0:
C:\Users\David.000\Documents\Arduino\libraries\SparkFun_AS726X\src/AS726X.h:99:22: error: expected identifier before numeric constant
#define AS7262_V_CAL 0x14
^
C:\Users\David.000\Documents\Arduino\libraries\Adafruit_AS726X/Adafruit_AS726x.h:61:3: note: in expansion of macro ‘AS7262_V_CAL’
AS7262_V_CAL = 0x14,
^~~~~~~~~~~~
C:\Users\David.000\Documents\Arduino\libraries\SparkFun_AS726X\src/AS726X.h:99:22: error: expected ‘}’ before numeric constant
#define AS7262_V_CAL 0x14
^
C:\Users\David.000\Documents\Arduino\libraries\Adafruit_AS726X/Adafruit_AS726x.h:61:3: note: in expansion of macro ‘AS7262_V_CAL’
AS7262_V_CAL = 0x14,
^~~~~~~~~~~~
C:\Users\David.000\Documents\Arduino\libraries\SparkFun_AS726X\src/AS726X.h:99:22: error: expected unqualified-id before numeric constant
#define AS7262_V_CAL 0x14
^
C:\Users\David.000\Documents\Arduino\libraries\Adafruit_AS726X/Adafruit_AS726x.h:61:3: note: in expansion of macro ‘AS7262_V_CAL’
AS7262_V_CAL = 0x14,
^~~~~~~~~~~~
In file included from C:\Users\David.000\Documents\Arduino\MultiSpectralNew\MultiSpectralNew.ino:11:0:
C:\Users\David.000\Documents\Arduino\libraries\Adafruit_AS726X/Adafruit_AS726x.h:67:1: error: expected declaration before ‘}’ token
};
^
exit status 1
Error compiling for board Arduino Uno.