30 lines
589 B
C
30 lines
589 B
C
/*
|
|
* main.h
|
|
*
|
|
* Created on: 11.02.2014
|
|
* Author: q242695
|
|
*/
|
|
|
|
#ifndef MAIN_H_
|
|
#define MAIN_H_
|
|
|
|
#ifndef F_CPU
|
|
#define F_CPU 20000000L
|
|
#endif
|
|
|
|
#define _LCD_PINS_
|
|
#define SCLK_PIN PD7 // SCLK pin
|
|
#define SDIN_PIN PD6 // SDIN pin
|
|
#define LCD_DC_PIN PD5 // Data/Command pin
|
|
#define LCD_CE_PIN PD4 // Chip Enable pin
|
|
#define LCD_RST_PIN PD3 // Reset 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 "nokia_5110.h"
|
|
|
|
#endif /* MAIN_H_ */
|