ESPHome, LCD (ESP32-BOX-S3) and Animated Gif's, won't animate

Hi guys,

Been playing around with my ESP32-BOX-S3 and trying to make a GIF animate on the screen without luck - not finding any good examples. I only get a static image (assume it is the first frame in the Gif).

Anybody know the solution?

Code tested (the rest of the code is redacted as I get a static image and ESP works in ESPHome):

animation:
  - file: "woo-hoo-bender.gif"
    id: bender_woohoo
    resize: 320x240
    type: RGB24
    use_transparency: true

display:
  - platform: ili9xxx
    id: s3_box_lcd
    model: S3BOX
    data_rate: 40MHz
    cs_pin: 5
    dc_pin: 4
    reset_pin:
      number: 48
      inverted: true
    update_interval: never
    pages:
      - id: idle_page
        lambda: |-
          id(bender_woohoo).next_frame();
          it.image(0, 0, id(bender_woohoo), COLOR_ON, COLOR_OFF);

Doesn’t update_interval: never mean that the display will never update, and therefore the next_frame won’t execute? (Just guessing here)

1 Like

Damn, Nick - you caught it!

It “works” but it is not smooth at all, perhaps it is to big/complex? Contains 22 frames. I’ll play more with it :slight_smile:

try this it may help - - interval: 1ms then: animation.next_frame: my_animation

1 Like

look in bigbobba’s discord Discord