35 lines
660 B
C
35 lines
660 B
C
/*
|
|
* main.h
|
|
*
|
|
* Created on: 11.02.2014
|
|
* Author: q242695
|
|
*/
|
|
|
|
#ifndef MAIN_H_
|
|
#define MAIN_H_
|
|
|
|
#ifndef F_CPU
|
|
#define F_CPU 8000000L
|
|
#endif
|
|
|
|
#ifndef __AVR_ATtiny88__
|
|
#define __AVR_ATtiny88__
|
|
#endif
|
|
|
|
#define _LCD_PINS_
|
|
#define LCD_RS_PIN PD0 // RS PIN
|
|
#define LCD_E_PIN PD1 // E PIN
|
|
#define LCD_D4_PIN PD4 // D4 PIN
|
|
#define LCD_D5_PIN PD5 // D5 PIN
|
|
#define LCD_D6_PIN PD6 // D6 PIN
|
|
#define LCD_D7_PIN PD7 // D7 PIN
|
|
#define LCD_DDR DDRD // Display Port DDR
|
|
#define LCD_PORT PORTD // Display Port PORT
|
|
|
|
#include <avr/io.h>
|
|
#include <util/delay.h>
|
|
#include <avr/pgmspace.h>
|
|
#include "lcd_hd44780.h"
|
|
|
|
#endif /* MAIN_H_ */
|