2018-10-08 20:44:05 +00:00
|
|
|
/*************
|
|
|
|
* dummy.cpp *
|
|
|
|
*************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* To view a copy of the GNU General Public License, go to the following *
|
|
|
|
* location: <http://www.gnu.org/licenses/>. *
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include "../../../inc/MarlinConfigPre.h"
|
|
|
|
|
|
|
|
#if ENABLED(EXTENSIBLE_UI)
|
|
|
|
|
|
|
|
#include "../ui_api.h"
|
|
|
|
|
|
|
|
// To implement a new UI, complete the functions below and
|
|
|
|
// read or update Marlin's state using the methods in the
|
|
|
|
// UI methods in "../ui_api.h"
|
2018-10-16 21:58:29 +00:00
|
|
|
//
|
|
|
|
// Although it may be possible to access other state
|
|
|
|
// variables from Marlin, using the API here possibly
|
|
|
|
// helps ensure future compatibility.
|
2018-10-08 20:44:05 +00:00
|
|
|
|
|
|
|
namespace UI {
|
2018-10-16 21:58:29 +00:00
|
|
|
void onStartup() {
|
|
|
|
/* Initialize the display module here. The following
|
|
|
|
* routines are available for access to the GPIO pins:
|
|
|
|
*
|
|
|
|
* SET_OUTPUT(pin)
|
|
|
|
* SET_INPUT_PULLUP(pin)
|
|
|
|
* SET_INPUT(pin)
|
|
|
|
* WRITE(pin,value)
|
|
|
|
* READ(pin)
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
void onIdle() {}
|
|
|
|
void onPrinterKilled(const char* msg) {}
|
2018-10-08 20:44:05 +00:00
|
|
|
void onMediaInserted();
|
|
|
|
void onMediaError();
|
|
|
|
void onMediaRemoved();
|
|
|
|
void onPlayTone(const uint16_t frequency, const uint16_t duration) {}
|
|
|
|
void onPrintTimerStarted() {}
|
|
|
|
void onPrintTimerPaused() {}
|
|
|
|
void onPrintTimerStopped() {}
|
|
|
|
void onFilamentRunout() {}
|
2018-10-16 21:58:29 +00:00
|
|
|
void onStatusChanged(const char* msg) {}
|
|
|
|
void onStatusChanged(progmem_str msg) {}
|
2018-10-08 20:44:05 +00:00
|
|
|
void onFactoryReset() {}
|
2018-10-16 21:58:29 +00:00
|
|
|
void onLoadSettings() {}
|
2018-10-08 20:44:05 +00:00
|
|
|
void onStoreSettings() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // EXTENSIBLE_UI
|