avr-firmwares/drivers/franzis_pp.h

49 lines
809 B
C
Raw Normal View History

#define ROW0_DDR DDRB
#define ROW0_PORT PORTB
#define ROW0_PIN PB1
#define ROW1_DDR DDRB
#define ROW1_PORT PORTB
#define ROW1_PIN PB0
#define ROW2_DDR DDRD
#define ROW2_PORT PORTD
#define ROW2_PIN PD7
#define ROW3_DDR DDRD
#define ROW3_PORT PORTD
#define ROW3_PIN PD6
#define ROW4_DDR DDRD
#define ROW4_PORT PORTD
#define ROW4_PIN PD5
#define ROW5_DDR DDRD
#define ROW5_PORT PORTD
#define ROW5_PIN PD4
#define ROW6_DDR DDRC
#define ROW6_PORT PORTC
#define ROW6_PIN PC3
#define ROW7_DDR DDRC
#define ROW7_PORT PORTC
#define ROW7_PIN PC2
#define ROW8_DDR DDRC
#define ROW8_PORT PORTC
#define ROW8_PIN PC1
#define ROW9_DDR DDRC
#define ROW9_PORT PORTC
#define ROW9_PIN PC0
#define COLS_DDR DDRB
#define COLS_PORT PORTB
#define COLS_STR PB2
#define COLS_DATA PB4
#define COLS_CLK PB3
void fb_hsync();