My Marlin configs for Fabrikator Mini and CTC i3 Pro B
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.

stress_test_screen.h 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /************************
  2. * stress_test_screen.h *
  3. ************************/
  4. /****************************************************************************
  5. * Written By Mark Pelletier 2017 - Aleph Objects, Inc. *
  6. * Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
  7. * *
  8. * This program is free software: you can redistribute it and/or modify *
  9. * it under the terms of the GNU General Public License as published by *
  10. * the Free Software Foundation, either version 3 of the License, or *
  11. * (at your option) any later version. *
  12. * *
  13. * This program is distributed in the hope that it will be useful, *
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  16. * GNU General Public License for more details. *
  17. * *
  18. * To view a copy of the GNU General Public License, go to the following *
  19. * location: <https://www.gnu.org/licenses/>. *
  20. ****************************************************************************/
  21. #pragma once
  22. #define FTDI_STRESS_TEST_SCREEN
  23. #define FTDI_STRESS_TEST_SCREEN_CLASS StressTestScreen
  24. struct StressTestScreenData {
  25. uint32_t next_watchdog_trigger;
  26. const char* message;
  27. };
  28. class StressTestScreen : public BaseScreen, public UncachedScreen {
  29. private:
  30. static void drawDots(uint16_t x, uint16_t y, uint16_t h, uint16_t v);
  31. static bool watchDogTestNow();
  32. static void recursiveLockup();
  33. static void iterativeLockup();
  34. static void runTestOnBootup(bool enable);
  35. public:
  36. static void startupCheck();
  37. static void onEntry();
  38. static void onRedraw(draw_mode_t);
  39. static bool onTouchEnd(uint8_t tag);
  40. static void onIdle();
  41. };