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.

example.cpp 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*************
  2. * dummy.cpp *
  3. *************/
  4. /****************************************************************************
  5. * Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
  6. * *
  7. * This program is free software: you can redistribute it and/or modify *
  8. * it under the terms of the GNU General Public License as published by *
  9. * the Free Software Foundation, either version 3 of the License, or *
  10. * (at your option) any later version. *
  11. * *
  12. * This program is distributed in the hope that it will be useful, *
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15. * GNU General Public License for more details. *
  16. * *
  17. * To view a copy of the GNU General Public License, go to the following *
  18. * location: <http://www.gnu.org/licenses/>. *
  19. ****************************************************************************/
  20. #include "../../../inc/MarlinConfigPre.h"
  21. #if ENABLED(EXTENSIBLE_UI)
  22. #include "../ui_api.h"
  23. // To implement a new UI, complete the functions below and
  24. // read or update Marlin's state using the methods in the
  25. // ExtUI methods in "../ui_api.h"
  26. //
  27. // Although it may be possible to access other state
  28. // variables from Marlin, using the API here possibly
  29. // helps ensure future compatibility.
  30. namespace ExtUI {
  31. void onStartup() {
  32. /* Initialize the display module here. The following
  33. * routines are available for access to the GPIO pins:
  34. *
  35. * SET_OUTPUT(pin)
  36. * SET_INPUT_PULLUP(pin)
  37. * SET_INPUT(pin)
  38. * WRITE(pin,value)
  39. * READ(pin)
  40. */
  41. }
  42. void onIdle() {}
  43. void onPrinterKilled(const char* msg) {}
  44. void onMediaInserted() {};
  45. void onMediaError() {};
  46. void onMediaRemoved() {};
  47. void onPlayTone(const uint16_t frequency, const uint16_t duration) {}
  48. void onPrintTimerStarted() {}
  49. void onPrintTimerPaused() {}
  50. void onPrintTimerStopped() {}
  51. void onFilamentRunout() {}
  52. void onStatusChanged(const char * const msg) {}
  53. void onFactoryReset() {}
  54. void onLoadSettings() {}
  55. void onStoreSettings() {}
  56. }
  57. #endif // EXTENSIBLE_UI