- static byte led_state;
- if (led_state)
- LL_GPIO_SetOutputPin(LED_GPIO_Port, LED_Pin);
- else
- LL_GPIO_ResetOutputPin(LED_GPIO_Port, LED_Pin);
- led_state ^= 1;
+ LL_GPIO_ResetOutputPin(LED_GPIO_Port, LED_Pin);
+ static byte xxx;
+ switch (xxx)
+ {
+ case 0:
+ LL_GPIO_ResetOutputPin(SSR1_GPIO_Port, SSR1_Pin);
+ break;
+ case 1:
+ LL_GPIO_ResetOutputPin(SSR2_GPIO_Port, SSR2_Pin);
+ break;
+ case 2:
+ LL_GPIO_ResetOutputPin(SSR3_GPIO_Port, SSR3_Pin);
+ break;
+ case 3:
+ LL_GPIO_ResetOutputPin(SSR4_GPIO_Port, SSR4_Pin);
+ break;
+ }
+ xxx = (xxx+1) % 4;
+ }
+ led_state ^= 1;