program for final combination of working pieces

Dependencies:   SDFileSystem TMP102 mbed ISL29125

Fork of TEMP_Test by Thomas Dale

Committer:
tdale19
Date:
Mon Apr 18 16:41:40 2016 +0000
Revision:
13:906a647d7bd1
Parent:
9:9690da23e8d7
Jeriah on Tom's mbed id, fixed the sd save horizontal problem

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tdale19 9:9690da23e8d7 1 #include "RGBSensor.h"
tdale19 9:9690da23e8d7 2 #include "ISL29125.h"
tdale19 9:9690da23e8d7 3
tdale19 9:9690da23e8d7 4 // The location of the sensor on the FRDM-K64F//
tdale19 9:9690da23e8d7 5
tdale19 9:9690da23e8d7 6 ISL29125 RGB_sensor(I2C_SDA,I2C_SCL);
tdale19 9:9690da23e8d7 7
tdale19 9:9690da23e8d7 8 void RGB_init() {
tdale19 9:9690da23e8d7 9 RGB_sensor.RGBmode(ISL29125_RGB);
tdale19 9:9690da23e8d7 10 RGB_sensor.Range(ISL29125_10KLX);
tdale19 9:9690da23e8d7 11 RGB_sensor.Resolution(ISL29125_16BIT);
tdale19 9:9690da23e8d7 12 }
tdale19 9:9690da23e8d7 13 void get_rgb(uint16_t rgb[]){
tdale19 9:9690da23e8d7 14 RGB_sensor.Read(ISL29125_RGB, rgb);
tdale19 9:9690da23e8d7 15 }