| | |
| | | /* Private includes ----------------------------------------------------------*/ |
| | | /* USER CODE BEGIN Includes */ |
| | | #include "miscdev.h" |
| | | #include "ws2812b.h" |
| | | /* USER CODE END Includes */ |
| | | |
| | | /* Private typedef -----------------------------------------------------------*/ |
| | |
| | | MX_TIM1_Init(); |
| | | /* USER CODE BEGIN 2 */ |
| | | |
| | | init_relay(); |
| | | init_led(); |
| | | |
| | | ws2812b_init(); |
| | | beep_start(2, 300); |
| | | |
| | | /* USER CODE END 2 */ |
| | | |
| | | /* Infinite loop */ |
| | | /* USER CODE BEGIN WHILE */ |
| | | while (1) |
| | | { |
| | | toggle_led(Led_B); |
| | | for(int i=0; i<1000; i++) |
| | | udelay(3000); |
| | | /* Blink WS2812B strip lights */ |
| | | ws2812b_blink(); |
| | | |
| | | /* USER CODE END WHILE */ |
| | | |