Refactoring Mute and Gauge conditions

This commit is contained in:
Armel FAUVEAU
2025-02-10 02:28:35 +01:00
parent 26f4d7b4ec
commit d87e20186c
6 changed files with 49 additions and 17 deletions

View File

@@ -224,6 +224,7 @@ uint8_t cmds[] = {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
#if !defined(ENABLE_SPECTRUM) || !defined(ENABLE_FMRADIO)
void ST7565_Gauge(uint8_t line, uint8_t min, uint8_t max, uint8_t value)
{
gFrameBuffer[line][54] = 0x0c;
@@ -238,6 +239,7 @@ uint8_t cmds[] = {
gFrameBuffer[line][i] = (i <= filled) ? 0x2d : 0x21;
}
}
#endif
#endif
void ST7565_Init(void)