Closed danuw closed 1 year ago
Hi @danuw! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
You would have to set LV_COLOR_DEPTH to 1 but IIRC this is probably not enough, and monochrome displays can be painful with LVGL. Can you confirm that you're able to get the cfb sample to run though? https://docs.zephyrproject.org/latest/samples/subsys/display/cfb/README.html -- see https://youtu.be/GiDsMlRipJY?t=439
Also you don't need to mess with shields as the Devicetree for the AZ3166 already defines a zephyr_display
pointing to a properly configured SSD1306, so e.g. a sample such as the cfb one should work out of the box.
I'm assuming you also found this thread? https://github.com/zephyrproject-rtos/zephyr/discussions/51023#discussioncomment-3826394. I guess the mentioned LV_*
options there would be useful to try.
2. Build the solution for that board and that screen shield
west build -b az3166_iotdevkit . -- -DSHIELD=ssd1306_128x64
You cannot use -DSHIELD=ssd1306_128x64
because your board does not provide i2c_arduino nodelabel and already has description for ssd1306 display controller. ssd1306_128x64 shield works fine with samples/subsys/display/lvgl
.
For az3166_iotdevkit you need to provide proper LVGL configuration -DCONFIG_LV_Z_BITS_PER_PIXEL=1 -DCONFIG_LV_COLOR_DEPTH_1=y , e.g. west build -b az3166_iotdevkit . -- -DCONFIG_LV_Z_BITS_PER_PIXEL=1 -DCONFIG_LV_COLOR_DEPTH_1=y
Not a bug.
Describe the bug I am trying the sample with the MXChip (aka AZ3166 IoTDevKit). I have tested some other basic samples successfully such as the temperature one which showed in the serial monitor in VS Code. That board's screen seems to be a ssd1306_128x64. I have tried the LVGL sample to use the display, but setting it for that screen type errors. I was however able to compile with that shield. Am I missing a configuration (as it seems to say "configuration incomplete")?
To Reproduce
First for the mxchip to work I had to install
bossa
andopen-ocd
(using brew, e.g.brew install bossa
)Steps to reproduce the behavior:
cd ~/zephyrproject/zephyr/samples/subsys/display/lvgl
west build -b az3166_iotdevkit . -- -DSHIELD=ssd1306_128x64
I have also tried without the DSHIELD param and it compiles successfully and flashing shows a screen that is blue and orange (with missing pixels, but that does not show "Hello World". I have also deleted the build folder as well as used the
--pristine
parameter while building to ensure this is a fresh build (as simply adding the DSHIELD after a successful build without does not error but has the same failing outcome as described above).Expected behavior I expected that after step 2 where it builds, the build would be successful, I would flash the board and
hello world
would show on the screen.Impact This is the only board I have available with a screen at the moment to run my experiments and start prototyping some scenarios.
Logs and console output
Environment (please complete the following information):
West version: v1.0.0
commit 7b3db7c15d1d9ef0c41bbd80357751ade691cfa4
Additional context Add any other context that could be relevant to your issue, such as pin setting, target configuration, ...