tweaked detection to use photoresistor through an opamp

Dependents:   rgb_sensor_buffer

Fork of rgb_sensor by Milosch Meriac

Revision:
1:204db97d10c9
Parent:
0:576e43bd193d
Child:
2:4545984e62b6
--- a/rgb_sensor.h	Wed Jun 25 14:55:45 2014 +0000
+++ b/rgb_sensor.h	Wed Jun 25 14:59:12 2014 +0000
@@ -1,4 +1,25 @@
-#ifndef __RGB_SENSOR_H__
+/* Discrete RGB color sensor
+ *
+ * - uses single-channel light-dependent resistor (via ADC)
+ *   and a RGB LED.
+ * -  compensates background light
+ *
+ * Copyright (c) 2014 ARM Limited
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+ #ifndef __RGB_SENSOR_H__
 #define __RGB_SENSOR_H__
 
 #ifndef RGB_OVERSAMPLING