mirror of
https://github.com/mon/PocketVoltex.git
synced 2026-10-12 17:18:30 +03:00
Add firmware defaults reset, start button LEDs, overall brightness (rev6+)
This commit is contained in:
@@ -210,6 +210,10 @@ int main(void)
|
||||
led_set_rgb(ledMap[i-1], &sdvxConfig.fxColour);
|
||||
}
|
||||
}
|
||||
// START
|
||||
if(switches[0].state) {
|
||||
led_set_all_rgb(&sdvxConfig.startColour);
|
||||
}
|
||||
}
|
||||
}
|
||||
// knob lights go above all
|
||||
@@ -409,6 +413,9 @@ void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDI
|
||||
led_set_rgb(ledMap[i], &sdvxConfig.fxColour);
|
||||
}
|
||||
}
|
||||
if(LEDReport->btFx[6]) { // start
|
||||
led_set_all_rgb(&sdvxConfig.startColour);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user