Git Product home page Git Product logo

epd-library-python's People

Contributors

danielneumann avatar flandersen avatar soonuse avatar sopsmattw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

epd-library-python's Issues

Python snippets for 9.7inch e-Paper

Thank you so much for your help, appreciated it a lot. can you share some tips or code examples for 9.7 inch as well?It will definitely would be great if you could do that. thanks in advance!

Library not compatible to Python 3.7.3

I have installed epd-library in Raspbian GNU/Linux 10 and ran the example file "main.py" with Python 3.7.3. Unfortunately, the script terminates prematurely with the following error message:

Traceback (most recent call last):
File "main.py", line 59, in
main()
File "main.py", line 50, in main
epd.display_frame(epd.get_frame_buffer(image))
File "/home/pi/.local/lib/python3.7/site-packages/epd7in5b/init.py", line 148, in get_frame_buffer
buf = [0x00] * (self.width * self.height / 4)
TypeError: can't multiply sequence by non-int of type 'float'

The problem is the divison of the integer values. In Python 2.7 this results into an integer, while in Python 3.x it results into a float. For floor division, Python 3.x introduced the "//" operator.

For compatibility reasons with Python 2.7, I would suggest to fix this issue by adding an explicit typecast to int where necessary.
buf = [0x00] * int(self.width * self.height / 4)

How to print different gray color text in one image?

First of all thank you all!
I'am trying to write different gray tone texts and/or rectangles in partial refresh.
But when i use "draw_partial" it, updates all screen with new color (new gray tone).
Is there any way to solve this?

License clarification

The repository has LICENSE files stating GPL v3.0, but all the Python files appear to start with the MIT license. Which license is intended for the actual source?

Support for 7.8 inch Driver and Code Samples for python

Hello
I'm new to programming and i want to connect 7.8 ws with rPİ. And I know a little python. So can anyone explain me step by step how to setup this.
Final program will write some data on ePaper as quick as possible using Python code. Also i want to use Partial refresh.
Thank you

Easy rotate display

How is it possible to simply rotate the display? I use the epd2in7. In the sourcecode for the epd2in7b I found a rotate method that does not exist in epd2in7.

Support for the 9inch7 display

@soonuse Do you think it is possible to adapt for example epd7in5.py to support the 9inch7 variant from waveshare? Or in other words which files must be customized to meet the specifications for the 9.7 inch display?

How to print second color and not just monocolor.bmp?

Thank you so much for this great repo! I got it working* and it printed! YES

Now the question I have is how do I print with the second color (got a 7.5 white, black and red display)?

*followed the instructions but had to dopip --no-cache-dir install spidev and use another font because I didn't had FreeMonoBold.ttf

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.