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.

status_screen.h 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*******************
  2. * status_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_STATUS_SCREEN
  23. #define FTDI_STATUS_SCREEN_CLASS StatusScreen
  24. class StatusScreen : public BaseScreen, public CachedScreen<STATUS_SCREEN_CACHE,STATUS_SCREEN_DL_SIZE> {
  25. private:
  26. static void draw_axis_position(draw_mode_t);
  27. static void draw_temperature(draw_mode_t);
  28. static void draw_progress(draw_mode_t);
  29. static void draw_interaction_buttons(draw_mode_t);
  30. static void draw_status_message(draw_mode_t, const char * const);
  31. static void _format_time(char *outstr, uint32_t time);
  32. public:
  33. static void loadBitmaps();
  34. static void setStatusMessage(const char *);
  35. static void setStatusMessage(FSTR_P);
  36. static void onRedraw(draw_mode_t);
  37. static void onStartup();
  38. static void onEntry();
  39. static void onIdle();
  40. static bool onTouchEnd(uint8_t tag);
  41. static void onMediaInserted();
  42. static void onMediaRemoved();
  43. };