Advertisement
Matqux

taillight.h

May 25th, 2022
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. #ifndef INC_TAILLIGHT_H_
  2. #define INC_TAILLIGHT_H_
  3.  
  4. #include "WS2812B.h"
  5.  
  6. #include <stdlib.h>
  7. #include <stdio.h>
  8. #include <stdint.h>
  9.  
  10. #include "stm32f0xx_hal.h"
  11. #include "stm32f0xx_hal_tim.h"
  12.  
  13. extern int32_t tailLightState;
  14.  
  15. void fullfill(WS2812B* strip, uint32_t currentTime);
  16. void blinking(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  17. uint8_t flashes(WS2812B *strip, uint32_t delayTime, uint32_t flashTime, uint32_t currentTime);
  18. void circus(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  19. void snake(WS2812B* strip, uint8_t snakeLength, uint32_t delayTime, uint32_t currentTime);
  20. void loading(WS2812B* strip, uint8_t maxLength, uint32_t delayTime, uint32_t currentTime);
  21. void hearthbeat(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  22. void quadrotate(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  23.  
  24. #endif /* INC_TAILLIGHT_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement