Coder Social home page Coder Social logo

Comments (6)

embeddedt avatar embeddedt commented on September 3, 2024

What is the problem?

from lv_port_linux.

martin-scott-bluefruit avatar martin-scott-bluefruit commented on September 3, 2024

Hi, the image is distorted - it is double width, looks monochrome, and has vertical striations. The text is readable. I am wondering if there is a format mismatch - i am not sure what the rgba definition means and how it relates to the littlevgl formats

from lv_port_linux.

embeddedt avatar embeddedt commented on September 3, 2024

It's likely that lv_drivers/display/fbdev.c needs some modifications to accomodate your framebuffer's color format.

from lv_port_linux.

martin-scott-bluefruit avatar martin-scott-bluefruit commented on September 3, 2024

ok, i'll do some more research, thanks

from lv_port_linux.

martin-scott-bluefruit avatar martin-scott-bluefruit commented on September 3, 2024

Problem seems to be that memcpy (in fbdev_flush) cannot be used to copy to this 24bpp framebuffer because the color_p format is 32 bits. Therefore memcpy should be substituted with a version that skips every 4th byte, or support for a different color_p format is required. I tried changing petalinux /dev/fb0 to 32bpp but it does not seem to stick.

from lv_port_linux.

embeddedt avatar embeddedt commented on September 3, 2024

memcpy should be substituted with a version that skips every 4th byte

This is probably the simplest solution.

from lv_port_linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.