| | |
| | | // GPIOB->BSRR = 0X0080; |
| | | } |
| | | //uint32_t led1,led2,led3,led4,led5; |
| | | void Set4LEDColor(uint32_t firstled,uint32_t secondled,uint32_t thirdled,uint32_t fourthled) |
| | | void Set4LEDColor(uint32_t firstled,uint32_t fourthled,uint32_t thirdled,uint32_t secondled) |
| | | { |
| | | HAL_GPIO_WritePin(GPIOA, GPIO_PIN_15, GPIO_PIN_SET); |
| | | //__disable_irq(); |
| | | RGB_Rst(); |
| | | RGB_Set(firstled); |
| | | RGB_Set(secondled); |
| | | RGB_Set(thirdled); |
| | | RGB_Set(fourthled); |
| | | RGB_Set(thirdled); |
| | | RGB_Set(secondled); |
| | | RGB_Set(firstled); |
| | | |
| | | |
| | | // RGB_Set(firstled); |
| | | // RGB_Set(secondled); |
| | | // RGB_Set(thirdled); |
| | | // RGB_Set(fourthled); |
| | | |
| | | |
| | | //__enable_irq(); |