View as "text/plain" | Blame | 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 PORTD#define HC595_DDR DDRD#define HC595_DS_PIN PD2#define HC595_STCP_PIN PD4#define HC595_SHCP_PIN PD3#define ROT_PIN PINB#define ROT_1A_PIN PCINT3 // Outer#define ROT_1B_PIN PCINT2#define ROT_2A_PIN PCINT1 // Inner#define ROT_2B_PIN PCINT0// Decimal point output pin// - for drawing the DP on 7 segment#define DP_PORT PORTD#define DP_PIN PD0// Blank output pin// - for blanking the 4511 during update#define BL_PORT PORTD#define BL_PIN PD1// Flip & Swap buttons#define SB_INPUT PINB#define SB_PIN PB4#define FB_INPUT PINB#define FB_PIN PB6// i2c addr set#define I2CADDR_PIN PINA#define I2CADDR_0 PA0#define I2CADDR_1 PA1// Config set#define CONFSW_PIN PIND#define CONFSW_0 PD5#define CONFSW_1 PD6#endif