Comments (6)
Yes, I know this behavior. The drawBitmap functions simply skip drawing if the drawing block not all inside the display area. The simplest workaround is change the height to 136:
Arduino_ST7789 *gfx = new Arduino_ST7789(bus, TFT_RST, 0 /* rotation */, true /* IPS */, 136 /* width */, 240 /* height */, 53 /* col offset 1 */, 40 /* row offset 1 */, 51 /* col offset 2 */, 40 /* row offset 2 */);
from arduino_gfx.
thanks for that.
By the way, is there a method that I could draw the block by 68x8? That is more efficiency, I guess.
from arduino_gfx.
I have committed some handling on incomplete drawing in jpegDrawCallback(), please pull latest version to take a look.
from arduino_gfx.
still not work.
I try to fix the error.
what I do:
static int jpegDrawCallback(JPEGDRAW *pDraw)
{
// Serial.printf("Draw pos = %d,%d. size = %d x %d\n", pDraw->x, pDraw->y, pDraw->iWidth, pDraw->iHeight);
if (pDraw->x <= gfx->width())
{
int16_t w = pDraw->iWidth; //that should be width, not height
if ((pDraw->x + w) >= gfx->width())
{
w = gfx->width() - pDraw->x;
}
Serial.printf("Draw pos = %d,%d. size = %d x %d\n", pDraw->x, pDraw->y, w, pDraw->iHeight);
gfx->draw16bitBeRGBBitmap(pDraw->x, pDraw->y, pDraw->pPixels, w, pDraw->iHeight);
return 1;
}
return 1; //if return 0, it will be stop drawing.
}
but the the pixels of last serval columns are dislocation. the image is not right.
from arduino_gfx.
Should be fixed now, please pull latest code and take a look.
from arduino_gfx.
FANTASTIC JOB!
1.0.6 fixed the error.
thanks a lot.
from arduino_gfx.
Related Issues (20)
- When I use GC9107, colors are inverted. HOT 2
- Support for LilyGo T-Display S3 Long? HOT 4
- JC8048W550 ST7262 no display with V1.4.6 HOT 8
- Add support for TZT 1.9 Inch IPS 170x320 ST7789
- No image display from flash or SD (esp32S3-8048S070) HOT 7
- ILI9488 with Arduino UNO R3 HOT 7
- undefined reference to `Arduino_GFX::setFont(unsigned char const*)' HOT 1
- vscode+platformio ESP32S3 error HOT 3
- ESP32 V3.0.0 is out but didn't work with Arduino GFX HOT 3
- Error when compiling "PDQgraphicstest" for ESP32_8048S043 HOT 7
- Problem with jpeg_dec_parse_header() HOT 6
- using XL9535 IOs HOT 2
- T-QT Pro text and back colors not working HOT 4
- Problems with using setRotation HOT 4
- Is NV3023A supported? HOT 4
- WEA2012 miss D/C and TE pin define HOT 1
- GFX display not working with T-Display S3 AMOLED HOT 15
- Data Bus Class add bl618/bl616 HOT 1
- Pico tailor-made 8bit parallel not working, only slow software parallel with NT35510 HOT 1
- How to configure a three wire SPI without a DC line
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 arduino_gfx.