PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BaseTransition.h 700B

3 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef BASE_TRANSITION_H__
  2. #define BASE_TRANSITION_H__
  3. #include <Arduino.h>
  4. #include "ILI9341_t3.h"
  5. #include "MathUtil.h"
  6. class BaseTransition {
  7. public:
  8. BaseTransition(){};
  9. virtual void init( ILI9341_t3 tft );
  10. virtual void restart( ILI9341_t3 tft, uint_fast16_t color );
  11. virtual void perFrame( ILI9341_t3 tft, FrameParams frameParams );
  12. virtual boolean isComplete();
  13. };
  14. void BaseTransition::init( ILI9341_t3 tft ) {
  15. // Extend me
  16. }
  17. void BaseTransition::restart( ILI9341_t3 tft, uint_fast16_t color ) {
  18. // Extend me
  19. }
  20. void BaseTransition::perFrame( ILI9341_t3 tft, FrameParams frameParams ) {
  21. // Extend me
  22. }
  23. boolean BaseTransition::isComplete() {
  24. // Extend me
  25. return false;
  26. }
  27. #endif