Firmware: Change LED display modes

* Remove SK6812 White mode. Discrete LEDs are just fine
* Move discrete White mode at the beginning of the list
This commit is contained in:
Mario Hüttel 2021-05-13 16:12:43 +02:00
parent c3074bcb6a
commit 994899038c

View File

@ -7,12 +7,11 @@
#define MAX_TEMP_CELSIUS 70
enum ring_modes {
RING_MODE_ALL, /*!< control all LEDs at once */
RING_MODE_WHITE_DISCRETE, /*!< only discrete white LEDs */
RING_MODE_RED, /*!< only red SK6812 */
RING_MODE_GREEN, /*!< only green SK6812 */
RING_MODE_BLUE, /*!< only blue SK6812 */
RING_MODE_WHITE, /*!< only white SK6812 */
RING_MODE_WHITE_DISCRETE, /*!< only discrete white LEDs */
RING_MODE_ALL, /*!< control all LEDs at once */
RING_MODE_ARC, /*!< SK6812 closing ring */
RING_MODE_QUARTER, /*!< SK6812 walking quarter */
RING_MODE_IN_FARBE_UND_BUNT, /*!< SK6812 color mix */
@ -119,11 +118,6 @@ int main(void)
led_calc_val[i] = led_val << 8;
}
break;
case RING_MODE_WHITE:
for(int i = 0; i < RING_MAX_LED; i ++) {
led_calc_val[i] = led_val;
}
break;
case RING_MODE_WHITE_DISCRETE:
for(int i = 0; i < RING_MAX_LED; i ++) {
led_calc_val[i] = 0u;