lvgl / lv_port_win_codeblocks

Windows PC simulator project for LVGL embedded GUI Library
MIT License
143 stars 88 forks source link

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

Open pprasa opened 1 year ago

pprasa commented 1 year ago

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.

kisvegabor commented 1 year ago

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?

pprasa commented 1 year ago

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

embeddedt commented 1 year ago

Done.

pprasa commented 1 year ago

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

kisvegabor commented 1 year ago

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

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.