Skip to content

Commit

Permalink
Fix modifying vertical repeat over stop/start. Turn off LED on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBell committed Sep 23, 2023
1 parent acc334d commit df4c22c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void DisplayDriver::run() {
return;
}
printf("Configured display size %dx%d, v rep=%d\n", frame_data.config.h_length, frame_data.config.v_length, frame_data.config.v_repeat);
dvi0.vertical_repeat = frame_data.config.v_repeat;

multicore_launch_core1(core1_main);
multicore_fifo_push_blocking(uint32_t(this));
Expand Down Expand Up @@ -359,6 +360,10 @@ void DisplayDriver::run() {

multicore_reset_core1();

if (heartbet_led) {
pwm_set_gpio_level(PIN_LED, 0);
}

stop_display = false;
}

Expand Down

0 comments on commit df4c22c

Please sign in to comment.