Skip to content

Commit 756ac6b

Browse files
committed
Use BGR565 colorspace
This was not originally defined in CircuitPython. Doing this fixes a color cast that was incorrectly applied to the images.
1 parent f2d4416 commit 756ac6b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/ov2640_displayio_kaluga1_3_ili9341.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
tg = displayio.TileGrid(
5959
bitmap,
6060
pixel_shader=displayio.ColorConverter(
61-
input_colorspace=displayio.Colorspace.RGB565_SWAPPED
61+
input_colorspace=displayio.Colorspace.BGR565_SWAPPED
6262
),
6363
)
6464
g.append(tg)

examples/ov2640_displayio_kaluga1_3_st7789.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
tg = displayio.TileGrid(
6262
bitmap,
6363
pixel_shader=displayio.ColorConverter(
64-
input_colorspace=displayio.Colorspace.RGB565_SWAPPED
64+
input_colorspace=displayio.Colorspace.BGR565_SWAPPED
6565
),
6666
)
6767
g.append(tg)

examples/ov2640_displayio_pico_st7789_2in.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
g = Group(scale=1, x=(width - cam.width) // 2, y=(height - cam.height) // 2)
7575
tg = TileGrid(
76-
bitmap, pixel_shader=ColorConverter(input_colorspace=Colorspace.RGB565_SWAPPED)
76+
bitmap, pixel_shader=ColorConverter(input_colorspace=Colorspace.BGR565_SWAPPED)
7777
)
7878
g.append(tg)
7979
display.show(g)

examples/ov2640_jpeg_sd_kaluga1_3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
tg = displayio.TileGrid(
7777
bitmap,
7878
pixel_shader=displayio.ColorConverter(
79-
input_colorspace=displayio.Colorspace.RGB565_SWAPPED
79+
input_colorspace=displayio.Colorspace.BGR565_SWAPPED
8080
),
8181
)
8282
g.append(tg)

0 commit comments

Comments
 (0)