/* Name:    main.c
 * Author:  Steven Hearndon
 * Class:   CPSC 8550
 */

#include <avr/io.h>
#include <util/delay.h>

int main(void)
{
    // Set pins 0,1,2 to output on Port C
    DDRC = 0b00000111;

    // Initialize counter to 0
    uint8_t counter = 0;
    
    while (1) {
        PORTC = counter;
        _delay_ms(2000);
        counter = (counter + 1) % 8; // Keep btwn 0 and 7
    }
    return 0;
}
