1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

Add CPU speed for config. Modify display refresh with temp compensation

This commit is contained in:
norbert-walter
2024-09-26 17:57:43 +02:00
parent bb8ff01e41
commit 91b0c25dd6
4 changed files with 435 additions and 13 deletions

View File

@@ -54,11 +54,19 @@ void OBP60Init(GwApi *api){
}
#endif
/*
setCpuFrequencyMhz(80);
// Set CPU speed
String cpuspeed = api->getConfig()->getConfigItem(api->getConfig()->cpuSpeed,true)->asString();
if(String(cpuspeed) == "80"){
setCpuFrequencyMhz(80);
}
if(String(cpuspeed) == "160"){
setCpuFrequencyMhz(160);
}
if(String(cpuspeed) == "240"){
setCpuFrequencyMhz(240);
}
int freq = getCpuFrequencyMhz();
api->getLogger()->logDebug(GwLog::LOG,"CPU speed: %i", freq);
*/
api->getLogger()->logDebug(GwLog::LOG,"CPU speed: %i MHz", freq);
// Settings for backlight
String backlightMode = api->getConfig()->getConfigItem(api->getConfig()->backlight,true)->asString();