mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Create PrintVoltage.cpp
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
#include "OperatingModeUtilities.h"
|
||||||
|
|
||||||
|
void printVoltage(void) {
|
||||||
|
uint32_t volt = getInputVoltageX10(getSettingValue(SettingsOptions::VoltageDiv), 0);
|
||||||
|
OLED::printNumber(volt / 10, 2, FontStyle::SMALL);
|
||||||
|
OLED::print(SymbolDot, FontStyle::SMALL);
|
||||||
|
OLED::printNumber(volt % 10, 1, FontStyle::SMALL);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user