GithubHelp home page GithubHelp logo

Not an issue. Just a quick question. I have successfully managed to run 64x64 gif Animation example code. But when I try to run 128x64 gif on 4 chained 64x32 panels . Then it only playing animation in 64x64 area rest 64x64 panel area is blank. How do I could run 128x64 animation? There is no option I am able to locate to change gif width and height in neoconfig.h file. Any help in this regard will be appreciated. about animatedgifs HOT 4 CLOSED

marcmerlin avatar marcmerlin commented on September 21, 2024
Not an issue. Just a quick question. I have successfully managed to run 64x64 gif Animation example code. But when I try to run 128x64 gif on 4 chained 64x32 panels . Then it only playing animation in 64x64 area rest 64x64 panel area is blank. How do I could run 128x64 animation? There is no option I am able to locate to change gif width and height in neoconfig.h file. Any help in this regard will be appreciated.

from animatedgifs.

Comments (4)

marcmerlin avatar marcmerlin commented on September 21, 2024 1

glad you got it working. To be fair, there are 2 different codebases

  1. neomatrix
  2. the gif code
    so indeed they need to be configured separately and correctly for everything to work :)

from animatedgifs.

marcmerlin avatar marcmerlin commented on September 21, 2024

You're looking for gif_size:

#define gif_size 64

I think the library expects square gifs, so you'd need to decode a 128x128 gif and use the OFFSETY as shown in

Let me know if that works and I'll close this

from animatedgifs.

HarpreetHeera avatar HarpreetHeera commented on September 21, 2024

Thanks Marc Merlin for very quick response. Please give me few days for this to work on your suggestion. I will update you with in next week.

Many Thanks. :)

from animatedgifs.

HarpreetHeera avatar HarpreetHeera commented on September 21, 2024

Hi MarcMerlin,
Thank you so much for your suggestions, but it was my dumb mistake. Rectangular gifs are also working smoothly.
I was doing following mistake.
In https://github.com/marcmerlin/AnimatedGIFs/blob/master/neomatrix_config.h file I was passing direct pixels count in
const uint8_t kMatrixWidth = 128; const uint8_t kMatrixHeight = 64;

But it works well when I passed Tile size first then total number of Tiles in horizontal and vertical. Actually
I was thinking , these configuration was for NeoMatrix not for SmartMatrix. But In reality these variables are also used for mapping smartMatrix kpanels.

`const uint16_t MATRIX_TILE_WIDTH = 64; // width of EACH NEOPIXEL MATRIX (not total display)
const uint16_t MATRIX_TILE_HEIGHT= 32; // height of each matrix
// Used by LEDMatrix
const uint8_t MATRIX_TILE_H = 2; // number of matrices arranged horizontally
const uint8_t MATRIX_TILE_V = 2; // number of matrices arranged vertically

// Used by NeoMatrix
const uint16_t mw = MATRIX_TILE_WIDTH *  MATRIX_TILE_H;
const uint16_t mh = MATRIX_TILE_HEIGHT * MATRIX_TILE_V;

/// SmartMatrix Defines
#define COLOR_DEPTH 24         // known working: 24, 48 - If the sketch uses type `rgb24` directly, COLOR_DEPTH must be 24
const uint8_t kMatrixWidth = mw; //128
const uint8_t kMatrixHeight = mh; //64`

Many Thanks again for your quick support and nice work.
Regards,
Harpreet

from animatedgifs.

Related Issues (15)

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.