2011-10-15 11:32:43 +02:00
|
|
|
// Mini-LED-Cube 1.0
|
|
|
|
//
|
|
|
|
// Copyright (C) 2009 Paul Wilhelm <paul@mosfetkiller.de>
|
|
|
|
// http://mosfetkiller.de/?s=miniledcube
|
|
|
|
//
|
|
|
|
// Changed by Kai Lauterbach (klaute at web dot de)
|
2011-10-19 00:04:59 +02:00
|
|
|
//
|
|
|
|
// Externes Quarz, CKDIV8 Disabled
|
2011-10-15 11:32:43 +02:00
|
|
|
|
|
|
|
#ifndef __main_h__
|
|
|
|
#define __main_h__
|
|
|
|
|
2011-10-19 00:04:59 +02:00
|
|
|
// Includes
|
|
|
|
#include "globals.h"
|
2011-10-15 11:32:43 +02:00
|
|
|
|
|
|
|
#include <avr/interrupt.h>
|
|
|
|
#include <avr/io.h>
|
2011-10-19 00:04:59 +02:00
|
|
|
//#include <util/delay.h>
|
|
|
|
//#include <avr/pgmspace.h>
|
2011-10-15 11:32:43 +02:00
|
|
|
//#include <avr/wdt.h>
|
|
|
|
|
2011-10-19 00:04:59 +02:00
|
|
|
// Cube-Array
|
|
|
|
uint8_t cube[3][3][3];
|
|
|
|
uint8_t buffer[3][3][3]; // Framebuffer
|
2011-10-15 11:32:43 +02:00
|
|
|
|
2011-10-19 00:04:59 +02:00
|
|
|
volatile uint8_t frame_done = 0;
|
2011-10-15 11:32:43 +02:00
|
|
|
|
2011-10-19 00:04:59 +02:00
|
|
|
// Prototypen
|
2011-10-15 11:32:43 +02:00
|
|
|
void init(void);
|
2011-10-19 00:04:59 +02:00
|
|
|
void loop(uint8_t);
|
2011-10-15 11:32:43 +02:00
|
|
|
|
|
|
|
extern void init_usb(void);
|
|
|
|
extern void usbPoll(void);
|
|
|
|
|
|
|
|
#endif // __main_h__
|
|
|
|
|