program for final combination of working pieces
Dependencies: SDFileSystem TMP102 mbed ISL29125
Fork of TEMP_Test by
RGBSensor.cpp@9:9690da23e8d7, 2016-04-03 (annotated)
- Committer:
- tdale19
- Date:
- Sun Apr 03 21:51:02 2016 +0000
- Revision:
- 9:9690da23e8d7
Project now takes info from uv rgb solar and temperature
Who changed what in which revision?
User | Revision | Line number | New 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 | } |