Comments (2)
Your calculation is wrong. Assuming you are talking about the 1.54in display with a 200x200 resolution the calcuation is the following:
For y=0 && x=1:
(1 + 0 * 200) // 8 = 0
For y=1 && x=0:
(0 + 1*200) //8 = 25
For the floor division:
Each Byte of the image buffer contains the data for 8 different pixels, therefore you divide the "pixel position" by eight to get the correct position in the array.
from e-paper.
Oh yeah, my mistake; wasn't following the order of operations correctly in my head. Thanks also for explaining the image buffer 👍.
from e-paper.
Related Issues (20)
- Debug: e-Paper busy Raspberry PI Zero HOT 4
- Print numbers on screen? HOT 1
- EPD_7in5b_V2 shows everything mirror
- Segmentation fault on Raspberry Zero w and EPD4in01f HOT 4
- example code not works HOT 1
- Example code for STM32 does not work, due to wrong SPI initialization.
- Partial update over white background? It's possible? HOT 2
- Error showing "e-Paper busy" "e-Paper busy release" HOT 3
- [Errno 2] No such file or directory when trying to use rc.local or cronjob to run on start up.
- GUI Paint HardFault
- division issue under lib HOT 1
- How to detect if faulty device? V4 - 2.13inches HAT
- Displaying Image HOT 1
- Wrong Elf Class error when trying example python on raspberry pi 4 HOT 15
- ModuleNotFoundError: No module named 'Jetson' HOT 4
- epd2in13 stays in e-Paper busy with Pythondemo, C demo working fine. HOT 1
- e-ink 2.13 V4 rotate string / landscape
- Could not determine Jetson model HOT 3
- epdconfig.py closes device so sleep doesn't work HOT 11
- "Chestnut" instead of "example" HOT 1
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.