diff --git a/src/spectrum_fagci/spectrum.hpp b/src/spectrum_fagci/spectrum.hpp index cc3bfee..4fa4d82 100644 --- a/src/spectrum_fagci/spectrum.hpp +++ b/src/spectrum_fagci/spectrum.hpp @@ -183,6 +183,8 @@ class CSpectrum { case 15: UpdateFreqChangeStep(-100_KHz); break; + case 5: + ToggleBacklight(); default: isUserInput = false; } @@ -318,6 +320,10 @@ class CSpectrum { *FwData.p8FlashLightStatus = 3; } + inline void ToggleBacklight() { + GPIOB->DATA ^= GPIO_PIN_6; + } + inline u8 Rssi2Y(u8 rssi) { return clamp(DrawingEndY - (rssi - rssiMin), 1, DrawingEndY); }