Test temperature for the near space lab

Dependencies:   SDFileSystem mbed TEMP_Test

Dependents:   TEMP_Test

Fork of RGB_Test by Jeriah Bankson

RGBSensor.cpp

Committer:
Jeriah
Date:
2016-03-11
Revision:
0:547856de255b
Child:
1:e0fc716e2394

File content as of revision 0:547856de255b:

#include "RGBSensor.h"
#include "ISL29125.h"

// The location of the sensor on the FRDM-K64F//

ISL29125 RGB_sensor(I2C_SDA,I2C_SCL);

void RGB_init() {
    RGB_sensor.RGBmode(ISL29125_RGB);
    RGB_sensor.Range(ISL29125_10KLX);
    RGB_sensor.Resolution(ISL29125_16BIT);
}
void get_rgb(uint16_t rgb[]){
    RGB_sensor.read(ISL29125_RGB, rgb);
}