Giter VIP home page Giter VIP logo

Comments (6)

robweber avatar robweber commented on August 24, 2024 1

Thank you for testing that. I wondered if that was the case as well with the re-install. I'll mark this accordingly and make the change in the main branch directly since it's a pretty simple fix. Thank you for confirming!

from omni-epd.

robweber avatar robweber commented on August 24, 2024

Thanks for the all the information on this. Changing the alt_clear field should have triggered the correct clear method. How did you test after the change? Did you uninstall and rebuild the module if installed on your system?

from omni-epd.

leetdavid avatar leetdavid commented on August 24, 2024

I found a workaround for this to make it work. If you want to clear the screen, use:

epd._device.Clear(0xFF)

from omni-epd.

robweber avatar robweber commented on August 24, 2024

How is that any different than this line? https://github.com/robweber/omni-epd/blob/main/src/omni_epd/displays/waveshare_display.py#L137

By changing the alt_clear parameter to True it should trigger that as part of the normal epd.clear() method. The above definitely works but kind of ruins the point of having an abstraction that works for other EPD devices by having to access the device directly.

from omni-epd.

leetdavid avatar leetdavid commented on August 24, 2024

I agree that it's essentially the same; it's just what I did to make it work for my device. I'll try the suggested above fix to see if it works (as it should, as they are equivalent).

from omni-epd.

leetdavid avatar leetdavid commented on August 24, 2024

So I tested it, and the below modification mentioned works.

"epd2in13_V2": {"alt_init": True, "lut_init": True, "alt_clear": True, "version": 2},

It cleared my screen blank. Maybe the author of the issue didn't reinstall the changed library.

from omni-epd.

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.