rgbyteclock-code/main.c
2014-03-17 01:15:28 +01:00

36 lines
858 B
C

/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <struppi@struppi.name> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* (c) 2014 Stefan Rupp
* ----------------------------------------------------------------------------
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include "timer.h"
#include "lcd.h"
#include "rgbyteclock.h"
#include "spi.h"
#include "ledcontroller.h"
#include "rtc.h"
#include <util/delay.h>
int main(void) {
timer_init();
//rtc_init(0);
//spi_slave_init();
led_init();
sei();
//lcd_init();
DDRC |= (1<<PC5);
rgbyteclock();
// rgbyteclock() should never end, but who knows...
while(1);
}