Giter Club home page Giter Club logo

Comments (7)

moononournation avatar moononournation commented on July 20, 2024 1

I know what's the problem, should be fixed now.

from arduino_gfx.

moononournation avatar moononournation commented on July 20, 2024

from arduino_gfx.

JonRobo avatar JonRobo commented on July 20, 2024

GC9A01, do you find the same issue?

from arduino_gfx.

JonRobo avatar JonRobo commented on July 20, 2024

I noticed that if I set the rotation first then display a jpg, and then play a gif; the gif will playback properly in the set orientation.
However, if only the gif is played in the program there is nothing on the screen if I try to set the rotation

from arduino_gfx.

moononournation avatar moononournation commented on July 20, 2024

from arduino_gfx.

JonRobo avatar JonRobo commented on July 20, 2024

Yes the setAddrWindow comes after the rotation
image

from arduino_gfx.

JonRobo avatar JonRobo commented on July 20, 2024

Fixed this problem with a weird hack. Here is my rotation function

void set_rotation(uint16_t rotation)
{
switch(rotation)
{
case 0:
gfx->setRotation(0);
gfx->draw16bitBeRGBBitmap(0, 0, {0x00}, 1, 1);
break;
case 90:
gfx->setRotation(2);
gfx->draw16bitBeRGBBitmap(0, 0, {0x00}, 1, 1);
break;
case 180:
gfx->setRotation(1);
gfx->draw16bitBeRGBBitmap(0, 0, {0x00}, 1, 1);
break;
case 270:
gfx->setRotation(3);
gfx->draw16bitBeRGBBitmap(0, 0, {0x00}, 1, 1);
break;
}
}
After changing the rotation if the display is fed even a single pixel immediately and then a gif is played the gif plays in the desired orientation. In my case this pixel is blank and will show up in a non-visible part of my circular display so all is good for me now.

from arduino_gfx.

Related Issues (20)

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.