mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Create ShowWarning.cpp
This commit is contained in:
8
source/Core/Threads/OperatingModes/utils/ShowWarning.cpp
Normal file
8
source/Core/Threads/OperatingModes/utils/ShowWarning.cpp
Normal file
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user