Comments (3)
加上 display() 和 getbuffer() 的性能优化方案
- 屏幕:5.83inch e-Paper HAT
def display(self, image):
imwidth, imheight = image.size
image_monocolor = image.convert('1')
logging.debug('imwidth = %d imheight = %d ',imwidth, imheight)
if(imwidth == self.width and imheight == self.height):
pixels = image_monocolor.getdata()
elif(imwidth == self.height and imheight == self.width):
pixels = image_monocolor.rotate(90, expand=True).getdata()
else:
pixels = image_monocolor.resize((self.width,self.height)).getdata()
buf = [ (pixels[i]>>6<<4) + (pixels[i+1]>>6) for i in range(0, len(pixels), 2)]
self.send_command(0x10)
self.send_datas(buf)
self.send_command(0x12)
epdconfig.delay_ms(100)
self.ReadBusy()
from e-paper.
这个是很好的点子,等疫情过去,我到公司测试一遍
from e-paper.
ReadBusy 耗时是由硬件决定的吗?
from e-paper.
Related Issues (20)
- Partial Refresh leads to grey pixels on 1.54 inch V2 HOT 2
- [HELP] WaveshareV4 not drawing on PI 02W (Device Busy) HOT 3
- lgpio.error: 'GPIO busy' HOT 4
- RuntimeError: Failed to add edge detection HOT 5
- [HELP]: Is there good documentation and examples here?
- What correct module for 13.3inch 1600x1200 ?
- "e-Paper busy" from Python examples HOT 3
- Heavy blinking on refresh HOT 1
- 7in8 example code for python is missing
- [question] `epd2in13bc` `ReadBusy` check inverted? HOT 1
- Request for ESP32 MicroPython Driver for 4.2-inch E-Paper Display (V2)
- foreground / backgound args revesed
- edppaint.cpp - horz. lines not drawn
- DEV_Module_Exit for USE_LGPIO_LIB is empty
- E-paper display not working
- RuntimeError: Failed to add edge detection HOT 1
- E-Paper library using STM32CubeIDE
- 7.3inch 6 color (E) E-Paper Display 800×480 pixels - ESP32 Driver
- Trying to display a clock like in 7x5 example HOT 1
- ESP32 Drivers for 5.79 B and G and 7.3 - 6 colour module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from e-paper.