image2cpp icon indicating copy to clipboard operation
image2cpp copied to clipboard

Different formatting?

Open tablatronix opened this issue 4 years ago • 2 comments

What do you think about allowing alternative formatting of output ? eg. binary

I personally use this for icons and stuff for example

const unsigned char bitmap[] PROGMEM = {
  B00000000,B00000000, //  . . . . . . . . . . . . . . . .
  B00000000,B00000000, //  . . . . . . . . . . . . . . . .
  B00000111,B11100000, //  . . . . . # # # # # # . . . . .
  B00011111,B11111000, //  . . . # # # # # # # # # # . . .
  B01110000,B00001110, //  . # # # . . . . . . . . # # # .
  B11100000,B00000111, //  # # # . . . . . . . . . . # # #
  B00000111,B11100000, //  . . . . . # # # # # # . . . . .
  B00011110,B01111000, //  . . . # # # # . . # # # # . . .
  B00011000,B00011000, //  . . . # # . . . . . . # # . . .

tablatronix avatar May 27 '20 15:05 tablatronix

Originally I made image2cpp to generate source files for use with the Adafruit Arduino graphic libraries. It has been extended to some other formats as well but I feel it has become too bloated already. At least in its current form. I'd like to support more formats, but I think the UI needs updating to accommodate this in such a way that beginners can still easily use the tool, as was the original intent. So for now I won't be adding more formats, but feel free to add it in and send me a pull request.

javl avatar May 27 '20 18:05 javl