soonuse / epd-library-python Goto Github PK
View Code? Open in Web Editor NEWPython libraries for Waveshare e-paper series
License: GNU General Public License v3.0
Python libraries for Waveshare e-paper series
License: GNU General Public License v3.0
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!
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)
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?
I'm using image also some text and rectangles. I would like to use it Portrait.
Thank you
HW: WS 7.8 epaper, rPi Zero
is there anyway to write text horizontally?
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?
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
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.
@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?
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
Will this project add support for the 1.3inch LCD module (https://www.waveshare.com/wiki/1.3inch_LCD_Module) in the near future?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.