I want to write a code for calculator in atmel avr c. The microcontroller i use is atmega 128, et avr start kit v1. What i want to implement i, i have two seven segment leds that is controlled by two pushbuttons, and another push button for controlling 2 leds to switch between the operations like if both leds are off, it means addition, if {01-substraction, 10-multiplication , 11 - division}. Another pushbutton for an "equal to" and the output should be displayed on 2 segment displays. Can anyone able to help me with logic i want to implement. Please help me.