Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Animated Gifs support #687

Merged
merged 16 commits into from
Jan 16, 2025
Merged

Add Animated Gifs support #687

merged 16 commits into from
Jan 16, 2025

Conversation

Tawank
Copy link
Contributor

@Tawank Tawank commented Jan 15, 2025

Proposed Changes

  • added gif support
  • added loading boot.gif animation on boot
  • added drawGif, gifOpen, gifPlayFrame, gifDimensions, gifReset, gifClose, getFreeHeapSize, setCursor, print and println functions to js interpreter
  • added js script and gifs to sd_files
  • in js interpreter: changed print function witch prints to serial to serialPrintln as there is serialReadln
  • changed tft.fillRect(0,0,tftWidth,tftHeight,COLOR) to tft.fillScreen(COLOR) as it is faster

Types of Changes

Bugfix, New Feature

Verification

You can run script gifs.js.
Set boot animation.
View gifs with file explorer.

User-Facing Change

- added gif support
- added loading boot.gif animation on boot
- added `drawGif`, `gifOpen`, `gifPlayFrame`, `gifDimensions`, `gifReset`, `gifClose`, `getFreeHeapSize`, `setCursor`, `print` and `println` functions to js interpreter
- added js script and gifs to sd_files
- in js interpreter: changed `print` function witch prints to serial to `serialPrintln` as there is `serialReadln`
- 

Further Comments

https://www.youtube.com/watch?v=EiVVoIyECkQ
I tested drawing 4 gifs simultaneously.

@pr3y pr3y merged commit 9cc5793 into pr3y:main Jan 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants