Atmel Xplained Evaluation Board ATXMEGAA3BU-XPLD ATXMEGAA3BU-XPLD Data Sheet

Product codes
ATXMEGAA3BU-XPLD
Page of 15
 
12 
AVR1934 
8413A-AVR-09/11 
3.5 Light sensor application 
The light sensor application displays 
data from the light sensor as a raw 
ADC value text string, and a graphical 
bar representing illuminance. This bar 
increases in length as the ambient 
illumination increases. In contrast, the 
raw ADC value will decrease with 
increasing illumination. To avoid flickering, the text string for the raw value is only 
updated every 20
th
 iteration of the application loop. The light sensor application is 
available from the main menu. It is located in the files 
lightsensor.c
 and 
lightsensor.h
3.6 Backlight toggling 
The backlight can be toggled on or off 
from the demo application menu. 
Figure 8 Lightsensor application 
screenshot 
Figure 9 Toggle backlight in the main 
menu