mini-led-cube/firmware/main.h

44 lines
672 B
C
Raw Normal View History

2011-12-09 23:15:06 +01:00
/* CTHN.de MiniLEDCube
*
* Kai Lauterbach (klaute at web dot de)
*
* Based on http://mosfetkiller.de/?s=miniledcube
*
* License: General Public License (GPL v3)
*
*/
#ifndef __main_h__
#define __main_h__
// Includes
#include "globals.h"
2011-12-18 13:47:06 +01:00
//#include "type.h"
2011-12-17 22:03:57 +01:00
#include <avr/interrupt.h>
#include <avr/io.h>
2011-12-18 19:35:47 +01:00
#include <avr/eeprom.h>
2011-12-17 22:03:57 +01:00
2011-11-05 16:52:02 +01:00
// Cube-Data
2011-12-17 22:03:57 +01:00
uint32_t frame = 0xffffffff;
2011-11-05 16:52:02 +01:00
// Bit Offset in Cube-Data
2011-12-17 22:03:57 +01:00
uint8_t level; // Aktive Ebene
2011-12-18 19:35:47 +01:00
uint8_t mode;
uint8_t frmnum;
uint8_t delay;
2011-12-17 22:03:57 +01:00
//cube_t *cube;
2011-12-18 19:35:47 +01:00
uint32_t eep_anim[32] EEMEM;
// Prototypen
void init(void);
extern void init_usb(void);
extern void usbPoll(void);
2011-12-18 19:35:47 +01:00
void setFrame(uint8_t);
#endif // __main_h__