1 | // PORTS
|
2 | #define PORT_com74hc595 PORTC
|
3 | #define PORT_SER PC0 //74HC595 PIN 14
|
4 | #define PORT_SCK PC1 //74HC595 PIN 12
|
5 | #define PORT_RCK PC2 //74HC595 PIN 11
|
6 | |
7 | #define DDR_com74hc595 DDRC
|
8 | #define DDR_SER DDC0 //74HC595 PIN 14
|
9 | #define DDR_SCK DDC1 //74HC595 PIN 12
|
10 | #define DDR_RCK DDC2 //74HC595 PIN 11
|
Ist das identisch mit Ausnahme das ich Port B anstatt C genommen habe.
1 | // PORTS
|
2 | #define PORT_com74hc595 PORTB
|
3 | #define PORT_SER PINB0 //74HC595 PIN 14
|
4 | #define PORT_SCK PINB1 //74HC595 PIN 12
|
5 | #define PORT_RCK PINB2 //74HC595 PIN 11
|
6 | |
7 | #define DDR_com74hc595 DDRB
|
8 | #define DDR_SER PINB0 //74HC595 PIN 14
|
9 | #define DDR_SCK PINB1 //74HC595 PIN 12
|
10 | #define DDR_RCK PINB2 //74HC595 PIN 11
|