diff --git a/source/Core/Threads/OperatingModes/utils/ShowWarning.cpp b/source/Core/Threads/OperatingModes/utils/ShowWarning.cpp new file mode 100644 index 00000000..58370cb7 --- /dev/null +++ b/source/Core/Threads/OperatingModes/utils/ShowWarning.cpp @@ -0,0 +1,8 @@ +#include "Buttons.hpp" +#include "OperatingModeUtilities.h" +void warnUser(const char *warning, const int timeout) { + OLED::clearScreen(); + OLED::printWholeScreen(warning); + OLED::refresh(); + waitForButtonPressOrTimeout(timeout); +}