robertgallup / python-bmp2hex Goto Github PK
View Code? Open in Web Editor NEWPython utility to convert 1-, 4-, 8- and 16-bit bitmap files to hex. Used to embed graphics in Arduino/C code, primarily for display.
License: MIT License
Python utility to convert 1-, 4-, 8- and 16-bit bitmap files to hex. Used to embed graphics in Arduino/C code, primarily for display.
License: MIT License
Thanks for the great lib, but it looks like "double" is not really implemented.
Or am I wrong?
Hello, i like your program, works with the examples but i don't know how i need to design my .bmp images, for example... for a ssd1306 and the correct instruction for convert to hex array format. I run it in OS X.
Please, can you help me?
it's great tool for me . I really hope add batch process and support output text file in the future.
hjc@hjc-PC:~/disk-2/tool/bmp2hex/python-bmp2hex$ python bmp2hex.py -w 32 320x240.bmp
PROGMEM const struct {
unsigned int width;
unsigned int height;
unsigned int bitDepth;
uint8_t *pixel_data[230400];
} 320X240 = {
320, 240, 24, {
}
};
Traceback (most recent call last):
File "bmp2hex.py", line 248, in
if name == 'main': main()
File "bmp2hex.py", line 106, in main
bmp2hex(f.name, tablewidth, sizebytes, invert, raw, named, double, xbm)
File "bmp2hex.py", line 226, in bmp2hex
v = values[ndx] ^ invertbyte
IndexError: list index out of range
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.