From c1ed9a77c5fd1c6f5f40383f91944165b605827e Mon Sep 17 00:00:00 2001 From: Lewis Jackson <> Date: Thu, 1 Jun 2023 15:19:46 +0300 Subject: [PATCH] Replace inverse smoothstep with regular smoothstep for battery curve --- src/WatchFace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WatchFace.cpp b/src/WatchFace.cpp index ed31646..5e8678f 100644 --- a/src/WatchFace.cpp +++ b/src/WatchFace.cpp @@ -128,7 +128,7 @@ void WatchFace::DrawBatteryIcon() } else if (level < 0.0f) { level = 0.0f; } - level = 0.5f - sin(asin(1.0f - 2.0f * level) / 3.0f); + level = level * level * (3.0f - 2.0f * level); m_display.fillRect(200 - 44, 9, (int)std::round(35.0f * level), 15, GxEPD_BLACK);