Final program for the test of the RGB sensor
Dependencies: ISL29125 SDFileSystem mbed
Diff: main.cpp
- Revision:
- 1:e0fc716e2394
- Parent:
- 0:547856de255b
- Child:
- 2:04c2f253ec87
--- a/main.cpp Fri Mar 11 23:43:27 2016 +0000 +++ b/main.cpp Sat Mar 12 00:01:03 2016 +0000 @@ -4,7 +4,7 @@ #include "SDFileSystem.h" #include "SDSave.h" -SDFileSystem fs(PTE3,PTE1,PTE2,PTE4,"fs");//SDFileSystem object + Timer t; int main() {//main function, calls other files to move temp,RGB,PV,UV all to one managable function @@ -19,7 +19,7 @@ if (t.read()>lastTime+interval) { lastTime=t.read(); get_rgb(rgb); - writeDate_testRGB(lastTime,rgb[0],rgb[1],rgb[2]);//send data to writeData in SDsave.cpp + writeData_testRGB(lastTime,rgb[0],rgb[1],rgb[2]);//send data to writeData in SDsave.cpp //we will get all rgb readings through an array, with the corresponding integers going in order red, green, blue } }