tweaked detection to use photoresistor through an opamp
Fork of rgb_sensor by
Diff: rgb_sensor.h
- Revision:
- 8:88acb970df76
- Parent:
- 7:0d35392230be
- Child:
- 9:7bd80f4a965e
--- a/rgb_sensor.h Thu Jul 03 09:30:13 2014 +0000 +++ b/rgb_sensor.h Thu Jul 03 16:52:12 2014 +0000 @@ -19,7 +19,7 @@ * limitations under the License. */ - #ifndef __RGB_SENSOR_H__ +#ifndef __RGB_SENSOR_H__ #define __RGB_SENSOR_H__ #ifndef RGB_LED_ON @@ -27,11 +27,11 @@ #endif/*RGB_LED_ON*/ #ifndef RGB_OVERSAMPLING -#define RGB_OVERSAMPLING 128 +#define RGB_OVERSAMPLING 32 #endif/*RGB_OVERSAMPLING*/ #ifndef RGB_MAX_ADC_CLK -#define RGB_MAX_ADC_CLK 1000000UL +#define RGB_MAX_ADC_CLK 6000000UL #endif/*RGB_MAX_ADC_CLK*/ #define RGB_CHANNELS 4