Advertisement
Matqux

turnsignal.h

May 25th, 2022
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.16 KB | None | 0 0
  1. #ifndef INC_TURNSIGNAL_H_
  2. #define INC_TURNSIGNAL_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 turnSignalState;
  14.  
  15. void fullblink_l(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  16. void fullblink_r(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  17.  
  18. void lineblink_l(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  19. void lineblink_r(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  20.  
  21. void animation_r(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  22. void animation_l(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  23.  
  24. void invert_r(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  25. void invert_l(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  26.  
  27. void fade_r(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  28. void fade_l(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  29.  
  30. void pulse_r(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  31. void pulse_l(WS2812B* strip, uint32_t delayTime, uint32_t currentTime);
  32.  
  33. #endif /* INC_TURNSIGNAL_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement