/* Anschlüsse sind:
 * B0    - LCD (RS)
 * B1 	 - Kontrast-PWM
 * B2 	 - Backlight-PWM
 * B3-B5 - ISP/SPI
 * C0-5  - LCD (DB4-7, R/W, EN)
 * D2,D4 - USB
 * D7    - SPI (SS master)
 *
 */

#ifndef __MAIN_H
#define __MAIN_H
#include <stdint.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include <util/delay.h>
#include <util/atomic.h>
#include <stdio.h>

#include <usbdrv/usbdrv.h>

#include "display.h"
#include "spi.h"
#include "usb.h"

extern uint8_t newThermoData;
extern uint16_t thermoData[];

#define SOFTTIMERNUMS 4

#define LED1PORT PORTC
#define LED1APIN 0
#define LED1BPIN 1
#define LED2PORT PORTC
#define LED2PIN 2
#define LED3PORT PORTD
#define LED3PIN 7
#define BACKLIGHTPORT PORTB
#define BACKLIGHTPIN 2

#endif //__MAIN_H
