Subversion Repositories group.NITPanels

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pfowler 1
#ifndef _CONFIG_H_
2
#define _CONFIG_H_
3
 
4
#define OSFRADIO
5
#define HW_VERSION 0x01
6
#define SW_VERSION 0x01
7
 
8
#define I2C_SLAVE_ADDR  0x26
9
 
10
#define DISPLAY_REFRESH 2
11
/*
12
 * Setup for the shift register
13
 */
14
#define HC595_PORT		PORTA
15
#define HC595_DDR		DDRA
16
#define	HC595_DS_PIN	PA0
17
#define	HC595_STCP_PIN	PA1
18
#define	HC595_SHCP_PIN	PA2
19
 
20
#define ROT_1_PIN		PINB
21
#define ROT_1A_PIN		PCINT8
22
#define ROT_1B_PIN		PCINT9
23
 
24
// Decimal point output pin
25
//  - for drawing the DP on 7 segment
26
#define DP_PORT			PORTA
27
#define DP_PIN			PA5
28
 
29
// Blank output pin
30
//  - for blanking the 4511 during update
31
#define BL_PORT			PORTA
32
#define BL_PIN			PA3
33
 
34
// Flip & Swap buttons
35
#define SB_INPUT		PINB
36
#define SB_PIN			PB2
37
#define FB_INPUT		PINA
38
#define FB_PIN			PA7
39
 
40
#endif
41