Export RGB565 framebuffer type

This commit is contained in:
Jeff Epler 2025-01-22 14:49:00 -06:00
parent b015674cb6
commit 8fb5ba4339

View file

@ -153,6 +153,14 @@ update the data actually displayed on the panel. Internally, the
data is triple-buffered to prevent tearing. data is triple-buffered to prevent tearing.
)pbdoc"); )pbdoc");
m.def("AdafruitMatrixBonnetRGB565",
make_piomatter<piomatter::adafruit_matrix_bonnet_pinout,
piomatter::colorspace_rgb565>,
py::arg("buffer"), py::arg("geometry"))
//.doc() = "Drive panels connected to an Adafruit Matrix Bonnet using
// the RGB565 memory layout (4 bytes per pixel)"
;
m.def("AdafruitMatrixBonnetRGB888", m.def("AdafruitMatrixBonnetRGB888",
make_piomatter<piomatter::adafruit_matrix_bonnet_pinout, make_piomatter<piomatter::adafruit_matrix_bonnet_pinout,
piomatter::colorspace_rgb888>, piomatter::colorspace_rgb888>,