This commit is contained in:
Serge
2024-01-28 20:09:43 +01:00
4 changed files with 10 additions and 5 deletions

View File

@@ -278,7 +278,7 @@ namespace Starlight.AnimeMatrix
if (x >= FirstX(y) && x < Width())
SetLedLinear(RowToLinearAddress(y) - FirstX(y) + x, value);
}
}
public void SetLedDiagonal(int x, int y, byte color, int deltaX = 0, int deltaY = 0)
{
@@ -287,6 +287,9 @@ namespace Starlight.AnimeMatrix
int plX = (x - y) / 2;
int plY = x + y;
if (x - y == -1) plX = -1;
SetLedPlanar(plX, plY, color);
}

View File

@@ -1,4 +1,6 @@
namespace GHelper.Battery
using GHelper.Properties;
namespace GHelper.Battery
{
internal class BatteryControl
{
@@ -19,7 +21,7 @@
public static void UnSetBatteryLimitFull()
{
AppConfig.Set("charge_full", 0);
Program.settingsForm.VisualiseBatteryFull();
Program.settingsForm.Invoke(Program.settingsForm.VisualiseBatteryFull);
}
public static void AutoBattery(bool init = false)