Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pprasa opened this issue Jun 30, 2023 · 5 comments

Comments

@pprasa
Copy link

pprasa commented Jun 30, 2023

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:
lvgl/lv_port_pc_eclipse#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
Copy link
Member

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
Copy link
Author

pprasa commented Jul 6, 2023

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

@embeddedt
Copy link
Member

Done.

@pprasa
Copy link
Author

pprasa commented Jul 10, 2023

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

@kisvegabor
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants