#define H595DDR_OUT DDRC |=BIT(0)|BIT(1)|BIT(2)|BIT(3)|BIT(4)|BIT(5)|BIT(6) #define H595CTL PORTC //高低高平 #define H595_SER_H H595CTL |= BIT(PC6) //数据 #define H595_SER_L H595CTL &= ~BIT(PC6) #define H595_RCK_H H595CTL |= BIT