lv_port_win_codeblocks icon indicating copy to clipboard operation
lv_port_win_codeblocks copied to clipboard

LittlevGL lv_sim_codeblocks_win using code::blocks how to configure simulator for monochrome display

Open pprasa opened this issue 2 years ago • 5 comments

Hi, I am trying to use PC simulator for setting up a monochrome display 64x128. Though I setup the lv_conf.h color depth to 1, it's just showing white background color, no buttons are shown (button is present as I get clicks event by clicking randomly on the screen).

I saw this blog: https://github.com/lvgl/lv_port_pc_eclipse/issues/7 I can't find img_benchmark_bg.c in the environment.

Any idea what I am supposed to do? Please help.

I am developing this for Winstar Oled WEO012864VWPP3N0Y000 monochrome display 128x64. Is there a driver available for this? Thank you.

pprasa avatar Jun 30 '23 22:06 pprasa

Hi,

This repository is not actively maintained, so the first thins we need to do is creating a stable ground to get started.

@embeddedt could you help us a little by creating a releasev8.3 branch here?

kisvegabor avatar Jul 06 '23 18:07 kisvegabor

Hi, thanks for answering. That would be helpful. Thanks.

pprasa avatar Jul 06 '23 19:07 pprasa

Done.

embeddedt avatar Jul 08 '23 19:07 embeddedt

Hi @embeddedt, does it mean now I can use this branch for development using Simulator on Windows platform using CodeBlocks? Thanks.

pprasa avatar Jul 10 '23 12:07 pprasa

Yes, please try out the release/v8.3 branch. For a monochrome UI you need to set these in lv_conf.h:

  • LV_COLOR_DEPTH 1
  • LV_USE_THEME_MONO 1

And when you have created a display with lv_disp_drv_register() call:

  lv_theme_t * th = lv_theme_mono_init(lv_disp_get_default(), false, LV_FONT_DEFAULT);
  lv_disp_set_theme(lv_disp_get_default(), th);

Let me know how it works.

kisvegabor avatar Jul 10 '23 17:07 kisvegabor