app: remove RGB panel test animation
This commit is contained in:
parent
a1da462852
commit
7675f73d0b
|
@ -880,7 +880,6 @@ void main(void)
|
||||||
bool action = false; // if an action has been performed don't go to sleep
|
bool action = false; // if an action has been performed don't go to sleep
|
||||||
button_flag = false; // reset button flag
|
button_flag = false; // reset button flag
|
||||||
led_on(); // switch LED to indicate booting completed
|
led_on(); // switch LED to indicate booting completed
|
||||||
uint16_t matrix_led = 0;
|
|
||||||
while (true) { // infinite loop
|
while (true) { // infinite loop
|
||||||
iwdg_reset(); // kick the dog
|
iwdg_reset(); // kick the dog
|
||||||
if (user_input_available) { // user input is available
|
if (user_input_available) { // user input is available
|
||||||
|
@ -895,9 +894,6 @@ void main(void)
|
||||||
if (second_flag) { // one second passed
|
if (second_flag) { // one second passed
|
||||||
second_flag = false; // clear flag
|
second_flag = false; // clear flag
|
||||||
led_toggle(); // toggle LED to indicate if main function is stuck
|
led_toggle(); // toggle LED to indicate if main function is stuck
|
||||||
rgbmatrix_set(matrix_led % RGBMATRIX_WIDTH, matrix_led / RGBMATRIX_WIDTH, false, false, false); // disable current LED
|
|
||||||
matrix_led += 4; // go to next LED
|
|
||||||
rgbmatrix_set(matrix_led % RGBMATRIX_WIDTH, matrix_led / RGBMATRIX_WIDTH, true, false, false); // enable next LED
|
|
||||||
}
|
}
|
||||||
if (0 == gpio_get(GPIO_PORT(DRV8825_FAULT_PIN), GPIO_PIN(DRV8825_FAULT_PIN))) { // DRV8825 stepper motor error reports error
|
if (0 == gpio_get(GPIO_PORT(DRV8825_FAULT_PIN), GPIO_PIN(DRV8825_FAULT_PIN))) { // DRV8825 stepper motor error reports error
|
||||||
gpio_set(GPIO_PORT(DRV8825_ENABLE_PIN), GPIO_PIN(DRV8825_ENABLE_PIN)); // disable motor
|
gpio_set(GPIO_PORT(DRV8825_ENABLE_PIN), GPIO_PIN(DRV8825_ENABLE_PIN)); // disable motor
|
||||||
|
|
Loading…
Reference in New Issue