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.

36 line
700B

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