ev3dev-lang-rust icon indicating copy to clipboard operation
ev3dev-lang-rust copied to clipboard

check if screen uses rgb mode

Open Natejoestev opened this issue 1 year ago • 1 comments
trafficstars

It would be nice to beable to have a check to see if the screen allows for RGB or B&W.

Natejoestev avatar Feb 23 '24 17:02 Natejoestev

You can already do this with the framebuffer crate, that is used internally. With screen.buffer.var_screen_info.bits_per_pixel you get 1 for black and white and 16 or 32 for screens with color support. Does this work for your usecase?

pixix4 avatar Feb 25 '24 06:02 pixix4