-
Notifications
You must be signed in to change notification settings - Fork 216
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 img2code #84
base: master
Are you sure you want to change the base?
add img2code #84
Conversation
Is it possible to move scripts to |
14c79e5
to
fb6c39d
Compare
Yes, feel free moving the scripts to /utils/ . Also please add an animation example to ssd1306_TestAll(). |
I wonder if it will play badapple demo or at least part of it :) e.g. https://tenor.com/ru/view/bad-apple-manu-touhou-gif-21182229 |
fb6c39d
to
3b05b28
Compare
Finally, my first Bad Apple 😂 I don't have Nucleo, so I created a project for Black Pill. It might be compatible to Nucleo board. Could you test this from your side? Also I spot some artifacts. Black dots of white background spawn for some reason. Not sure, maybe Pillow generate them. Do you have any gif to add to test? |
f013249
to
67930a9
Compare
I just thought it would be fun to use a piece of BadApple animation. I realize it's a large demo and will probably require using an external SD card and loading the frames in the runtime. All this is out of scope of the pull request. Feel free using any GIF you like in order to test the functionality. Please rebase the PR. |
Do you mean remove bad apple demo from the library? |
cb58f07
to
8c017f1
Compare
8c017f1
to
4db2e5a
Compare
No I meant that I don't insist on using Bad Apple if this is too much effort. The PR looks good to me. If there are no last-minute changes I'm going to merge it. |
This PR still needed a test case |
Image to C code converter
img2code
script converts images to C byte array (bitmap)Which can be drawn on display by library
Example:
Animation
You can even convert GIF files!
This generates a bitmap for each frame, which can be accessed by index
Example: