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.
 
 
 

41 line
839 B

  1. #include "core/common.h"
  2. #include "core/buttons.h"
  3. #include "core/display.h"
  4. #include <epaper/EPD.h>
  5. #include "InternalMemoryMenuMode.h"
  6. void InternalMemoryMenuMode::start()
  7. {
  8. display_refresh();
  9. }
  10. void InternalMemoryMenuMode::loop()
  11. {
  12. char text[1024];
  13. //display_clear();
  14. EPD_setFont(COMIC24_FONT, NULL);
  15. EPD_print("Internal Memory", CENTER, 00);
  16. EPD_setFont(DEJAVU18_FONT, NULL);
  17. EPD_print("Current File:", 5, 30);
  18. EPD_print("/spiffs/book.txt", 20, 50);
  19. EPD_print("Size:", 5, 80);
  20. EPD_print("1234 kB", 100, 80);
  21. EPD_print("Position:", 5, 100);
  22. EPD_print("45%", 100, 100);
  23. display_update();
  24. while (1) {
  25. delay(10);
  26. if (buttons_pressed_ok()) {
  27. this->setFinished();
  28. break;
  29. }
  30. }
  31. }
  32. void InternalMemoryMenuMode::finish()
  33. {}