Commit bf0b8790 authored by Johann Fischer's avatar Johann Fischer Committed by Carles Cufi
Browse files

samples: cfb_custom_font: set required pixel format



Set for this sample required pixel format.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 4541f1f7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@ void main(void)
		printk("Display device not ready\n");
	}

	if (display_set_pixel_format(display, PIXEL_FORMAT_MONO10) != 0) {
		printk("Failed to set required pixel format\n");
		return;
	}

	err = cfb_framebuffer_init(display);
	if (err) {
		printk("Could not initialize framebuffer (err %d)\n", err);