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:
parent
c3074bcb6a
commit
994899038c
@ -7,12 +7,11 @@
|
|||||||
#define MAX_TEMP_CELSIUS 70
|
#define MAX_TEMP_CELSIUS 70
|
||||||
|
|
||||||
enum ring_modes {
|
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_RED, /*!< only red SK6812 */
|
||||||
RING_MODE_GREEN, /*!< only green SK6812 */
|
RING_MODE_GREEN, /*!< only green SK6812 */
|
||||||
RING_MODE_BLUE, /*!< only blue SK6812 */
|
RING_MODE_BLUE, /*!< only blue SK6812 */
|
||||||
RING_MODE_WHITE, /*!< only white SK6812 */
|
RING_MODE_ALL, /*!< control all LEDs at once */
|
||||||
RING_MODE_WHITE_DISCRETE, /*!< only discrete white LEDs */
|
|
||||||
RING_MODE_ARC, /*!< SK6812 closing ring */
|
RING_MODE_ARC, /*!< SK6812 closing ring */
|
||||||
RING_MODE_QUARTER, /*!< SK6812 walking quarter */
|
RING_MODE_QUARTER, /*!< SK6812 walking quarter */
|
||||||
RING_MODE_IN_FARBE_UND_BUNT, /*!< SK6812 color mix */
|
RING_MODE_IN_FARBE_UND_BUNT, /*!< SK6812 color mix */
|
||||||
@ -119,11 +118,6 @@ int main(void)
|
|||||||
led_calc_val[i] = led_val << 8;
|
led_calc_val[i] = led_val << 8;
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case RING_MODE_WHITE_DISCRETE:
|
||||||
for(int i = 0; i < RING_MAX_LED; i ++) {
|
for(int i = 0; i < RING_MAX_LED; i ++) {
|
||||||
led_calc_val[i] = 0u;
|
led_calc_val[i] = 0u;
|
||||||
|
Loading…
Reference in New Issue
Block a user