AS7265x functions for setting integration time, LEDs, collecting/reading data

Dependents:   IntegratingSphereController LaunchDay

Revision:
1:4d4e07dcc694
Parent:
0:3699cacb5a93
--- a/AS7265xfunctions.h	Thu Jan 24 01:27:45 2019 +0000
+++ b/AS7265xfunctions.h	Fri Apr 05 19:19:52 2019 +0000
@@ -11,6 +11,9 @@
         AS7265x(I2C i2c, int addr); //constructor function
         uint16_t readData(int); //enter a number 1 through 18 to read the data from one of the channels
         void collectData(void); //run this function to collect one set of data from all channels
+        void setBank(int);
+        float readTemp(void);
+        void setGain(int);
     private:
         void selectDevice(int); //selects one of the 3 sensors, used in ledSwitch() and collectData()
         uint16_t getData(int); //gets data from one channel, used in collectData() to set up the _channels array with all of the data
@@ -19,7 +22,5 @@
         char regRead(char reg);
         I2C _i2c;
         int _addr;
-        int _integTime;
-        int _set;
 };
-#endif
\ No newline at end of file
+#endif