for MSP430F2012. Use ADC10CTL0

LED on P1.0 is used as a light sensor