28 lines
523 B
C
28 lines
523 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 _OLED_PINS_
|
|
#define OLED_SPI // Digole OLED display, SPI protocol
|
|
#define SS_PIN PD0 // SS pin
|
|
#define SCLK_PIN PD1 // SCLK pin
|
|
#define SDIN_PIN PD2 // SDIN pin
|
|
#define OLED_DDR DDRD // Display Port DDR
|
|
#define OLED_PORT PORTD // Display Port PORT
|
|
|
|
#include <avr/io.h>
|
|
#include <util/delay.h>
|
|
#include "digole.h"
|
|
|
|
#endif /* MAIN_H_ */
|