My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

media_player_screen.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*************************
  2. * media_player_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_MEDIA_PLAYER_SCREEN
  23. #define FTDI_MEDIA_PLAYER_SCREEN_CLASS MediaPlayerScreen
  24. class MediaPlayerScreen : public BaseScreen, public UncachedScreen {
  25. private:
  26. typedef int16_t media_streamer_func_t(void *obj, void *buff, size_t bytes);
  27. public:
  28. static bool playCardMedia();
  29. static bool playBootMedia();
  30. static void onEntry();
  31. static void onRedraw(draw_mode_t);
  32. static void playStream(void *obj, media_streamer_func_t*);
  33. };