By varying the switch positions , you can watch out output. It s elementary program for Atmaga8 , LCD & Switch interfacing.
File list:
SWITCH_LCD
.........\.dep
.........\....\switch_lcd.o.d
.........\two_module
.........\..........\.dep
.........\..........\....\two_switch.o.d
.........\..........\Makefile
.........\..........\two_switch.c
.........\..........\two_switch.eep
.........\..........\two_switch.elf
.........\..........\two_switch.hex
.........\..........\two_switch.lss
.........\..........\two_switch.lst
.........\..........\two_switch.map
.........\..........\two_switch.o
.........\..........\two_switch.sym
.........\..........\two_switch_elf.aps
.........\..........\two_switch_elf.aws
.........\Makefile
.........\switch_lcd
.........\switch_lcd.c
.........\switch_lcd.eep
.........\switch_lcd.elf
.........\switch_lcd.hex
.........\switch_lcd.lss
.........\switch_lcd.lst
.........\switch_lcd.map
.........\switch_lcd.o
.........\switch_lcd.sym
.........\switch_lcd_elf.aps
.........\switch_lcd_elf.aws