// This is just baseline template code in C. This code will not work without being edited. If you wish to rewire/reroute/rename/replace any of the connections/components feel free, when you're done
// just use the pins, names, and components that you changed them too.
// This code will not work without being edited
// Constants and Pin Definitions
include < avr / io.h >
include < avr / interrupt.h >
include < util / delay.h >
// LED Pins
define AM_PM_LED_PIN PORTB0
define HOURS_LED_PIN_START PORTB1 // 4 LEDs for hours PB1 to PB4
define MINUTES_LED_PIN_START PORTC0 // 6 LEDs for minutes PC0 to PC5
define SECONDS_LED_PIN_START PORTD0 // 6 LEDs for seconds PD0 to PD5
// Buttons
define SELECT_BUTTON_PIN PORTB5
define CHANGE_BUTTON_PIN PORTB6
define START_STOP_BUTTON_PIN PORTB7
// States for button actions
define SELECT_HOURS 0