Control the brightness of the LED's. More...
Go to the source code of this file.
Functions | |
| void | changeLedBrightness (volatile unsigned int adcReading) |
| change the brightness od the LED's based on the LDR ADC reading, gets called from ADC10_ISR(void) | |
Variables | |
| unsigned int | pwmOnCycles = 0 |
Control the brightness of the LED's.
Definition in file led.c.
| void changeLedBrightness | ( | volatile unsigned int | adcReading | ) |
change the brightness od the LED's based on the LDR ADC reading, gets called from ADC10_ISR(void)
| [in] | adcReading | The reading from the adc of the LDR |
Definition at line 22 of file led.c.
References pwmOnCycles.
| unsigned int pwmOnCycles = 0 |
Definition at line 15 of file led.c.
Referenced by changeLedBrightness(), changeLedBrightness(), and ISR_TA0().