Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions shared-module/busdisplay/BusDisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
#include "supervisor/shared/display.h"
#include "supervisor/shared/tick.h"

#if CIRCUITPY_WEB_WORKFLOW
#include "supervisor/shared/web_workflow/display_stream.h"
#endif

#if CIRCUITPY_TINYUSB
#include "supervisor/usb.h"
#endif
Expand Down Expand Up @@ -256,6 +260,9 @@ static bool _refresh_area(busdisplay_busdisplay_obj_t *self, const displayio_are
if (!displayio_display_core_clip_area(&self->core, area, &clipped)) {
return true;
}
#if CIRCUITPY_WEB_WORKFLOW
display_stream_area_updated(&self->core, &clipped);
#endif
uint16_t rows_per_buffer = displayio_area_height(&clipped);
uint16_t cols_per_buffer = displayio_area_width(&clipped);
uint8_t pixels_per_word = (sizeof(uint32_t) * 8) / self->core.colorspace.depth;
Expand Down
7 changes: 7 additions & 0 deletions shared-module/framebufferio/FramebufferDisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#include "supervisor/shared/display.h"
#include "supervisor/shared/tick.h"

#if CIRCUITPY_WEB_WORKFLOW
#include "supervisor/shared/web_workflow/display_stream.h"
#endif

#if CIRCUITPY_TINYUSB
#include "supervisor/usb.h"
#endif
Expand Down Expand Up @@ -200,6 +204,9 @@ static bool _refresh_area(framebufferio_framebufferdisplay_obj_t *self, const di
dest += rowstride;
src += rowsize;
}
#if CIRCUITPY_WEB_WORKFLOW
display_stream_area_updated(&self->core, &subrectangle);
#endif
// Run background tasks so they can run during an explicit refresh.
// Auto-refresh won't run background tasks here because it is a background task itself.
RUN_BACKGROUND_TASKS;
Expand Down
8 changes: 8 additions & 0 deletions supervisor/shared/tick.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#include "shared-module/audiofilewriter/AudioFileWriter.h"
#endif

#if CIRCUITPY_WEB_WORKFLOW
#include "supervisor/shared/web_workflow/display_stream.h"
#endif

#include "shared-bindings/microcontroller/__init__.h"

#if CIRCUITPY_WATCHDOG
Expand Down Expand Up @@ -90,6 +94,10 @@ void supervisor_tick(void) {
keypad_tick();
#endif

#if CIRCUITPY_WEB_WORKFLOW
display_stream_tick();
#endif

background_callback_add(&tick_callback, supervisor_background_tick, NULL);
}

Expand Down
Loading
Loading