Skip to content

Convert an entire folder of assets into a C header file intended for use with Arduino

License

Notifications You must be signed in to change notification settings

joshgoebel/img2ard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2ard

Meant for usage with Arduboy and drawImage. This tool compiles a full folder of png files into a single assets.h file of character arrays in PROGMEM suitable for passing to the core libraries drawBitmap function.

Installation

Requires Ruby 2.0+.

gem install chunky_png
# clone git repository and put img2ard.rb in your path

Yes, I need to convert this to a Ruby gem, but so much to do.

Usage

cd source_folder
ls assets
./img2ard.rb
cat assets.h

After compiling all your assets will be locating in assets.h and ready for use in your sketch.

About

Convert an entire folder of assets into a C header file intended for use with Arduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages