File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343#include "supervisor/spi_flash_api.h"
4444#include "py/mpconfig.h"
4545
46+ #if CIRCUITPY_DOTCLOCKFRAMEBUFFER
47+ #include "shared-bindings/dotclockframebuffer/DotClockFramebuffer.h"
48+ #endif
49+
4650#if CIRCUITPY_SHARPDISPLAY
4751#include "shared-bindings/sharpdisplay/SharpMemoryFramebuffer.h"
4852#include "shared-module/sharpdisplay/SharpMemoryFramebuffer.h"
@@ -133,6 +137,10 @@ void common_hal_displayio_release_displays(void) {
133137 common_hal_displayio_fourwire_deinit (& display_buses [i ].fourwire_bus );
134138 } else if (bus_type == & displayio_i2cdisplay_type ) {
135139 common_hal_displayio_i2cdisplay_deinit (& display_buses [i ].i2cdisplay_bus );
140+ #if CIRCUITPY_DOTCLOCKFRAMEBUFFER
141+ } else if (bus_type == & dotclockframebuffer_framebuffer_type ) {
142+ common_hal_dotclockframebuffer_framebuffer_deinit (& display_buses [i ].dotclock );
143+ #endif
136144 #if CIRCUITPY_PARALLELDISPLAY
137145 } else if (bus_type == & paralleldisplay_parallelbus_type ) {
138146 common_hal_paralleldisplay_parallelbus_deinit (& display_buses [i ].parallel_bus );
You can’t perform that action at this time.
0 commit comments