Subversion Repositories group.NITPanels

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef _CONFIG_HW02_H_
#define _CONFIG_HW02_H_

#ifndef _CONFIG_H_
#error "Define config.h rather then this one"
#endif

/*
 * Setup for the shift register
 */
#define HC595_PORT              PORTA
#define HC595_DDR               DDRA
#define HC595_DS_PIN    PA0
#define HC595_STCP_PIN  PA1
#define HC595_SHCP_PIN  PA2

#define ROT_PIN         PINB
#define ROT_1A_PIN              PCINT8
#define ROT_1B_PIN              PCINT9

// Decimal point output pin
//  - for drawing the DP on 7 segment
#define DP_PORT                 PORTA
#define DP_PIN                  PA5

// Blank output pin
//  - for blanking the 4511 during update
#define BL_PORT                 PORTA
#define BL_PIN                  PA3

// Flip & Swap buttons
#define SB_INPUT                PINB
#define SB_PIN                  PB2
#define FB_INPUT                PINA
#define FB_PIN                  PA7



#endif