Spritesheet to hexadecimal

Hello guys,

I would like to know how did you work with spritesheets on arduboy (example), I have many of them that I want to convert into hexadecimal blocks but I don’t know which is the best tool/way to do this.

Thanks in advance!

1 Like

I just noticed ToChars tool, but it didn’t work as I expected.

Heya! ToChars is a tool that I made. When programming sprites for the Arduboy, you can use ToChars to convert a sprite sheet to hexadecimal character representation that you would want to use with the Arduboy. But, they have to meet 2 requirements: 1) The sprite sheet should be monochrome and 2) The sprites need to be regularly spaced.

Lemme give you a little tutorial…

Let’s say that you have a map made from the following 8x8 tiles. I need to have a spritesheet with those tiles that is black/white and regularly-spaced.

Now, you would be able to upload this PNG to ToChars with pretty much the default parameters. Remember that the tiles are 8px by 8px, so, we’ll put that in. Also, remember that there is no padding or offset in this since all the tiles are touching. (If you need more help with what this means, lemme know.) Leave the prefix/postfix fields on their default values and click Convert. The code should be spit out into Arduboy-compatible hexadecimal:

0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x78, 0x78, 0x07, 0x87, 0xff, 0xff, 0xe6, 0x66, 0x7f, 0xff, 0xe1, 0xe1, 0xff, 0xff, 0xf9, 0xf9, 0x9f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x19, 0x99, 0xff, 0xff, 0x9f, 0x9f, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0x9f, 0x9f, 0xff, 0xff, 0x9f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x7f, 0xff, 0xe1, 0xe1, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0x98, 0x18, 0x7f, 0xff, 0xe6, 0x66, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x19, 0x99, 0xff, 0xff, 0x9f, 0x9f, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0x9f, 0x9f, 0xff, 0xff, 0xfe, 0x7e, 0x61, 0xe1, 0x99, 0x99, 0x81, 0x81, 0xff, 0xff, 0xf9, 0xf9, 0x9f, 0x9f, 0xff, 0xff, 0xf8, 0x78, 0x06, 0x06, 0x61, 0xe1, 0x86, 0x06, 0x7f, 0xff, 0x81, 0x81, 0xe6, 0x66, 0x78, 0x78, 0x78, 0x78, 0x07, 0x87, 0xff, 0xff, 0xe6, 0x66, 0x7f, 0xff, 0xe1, 0xe1, 0xff, 0xff, 0xf9, 0xf9, 0xf9, 0xf9, 0xff, 0xff, 0x81, 0x81, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0xf8, 0x78, 0x7f, 0xff, 0xff, 0xff, 0xe7, 0xe7, 0xff, 0xff, 0xf9, 0xf9, 0xe1, 0xe1, 0x99, 0x99, 0x99, 0x99, 0xe7, 0xe7, 0xff, 0xff, 0xe1, 0xe1, 0xe6, 0x66, 0x79, 0xf9, 0x87, 0x87, 0x98, 0x18, 0x61, 0xe1, 0xe6, 0x66, 0x7f, 0xff, 0xe1, 0xe1, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0x98, 0x18, 0x7f, 0xff, 0xe6, 0x66, 0x7f, 0xff, 0xff, 0xff, 0xf8, 0x78, 0x7f, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0x81, 0x81, 0xff, 0xff, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x19, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x19, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x80, 0x00, 0x79, 0xf9, 0xe7, 0xe7, 0x80, 0x00, 0x00, 0x00, 0x67, 0xe7, 0x80, 0x00, 0x07, 0x87, 0x86, 0x06, 0x00, 0x00, 0x61, 0xe1, 0xe6, 0x66, 0x00, 0x00, 0x66, 0x66, 0x19, 0x99, 0xe6, 0x66, 0x00, 0x00, 0x7f, 0xff, 0x9e, 0x1e, 0x78, 0x78, 0x00, 0x00, 0x79, 0xf9, 0xe7, 0xe7, 0x86, 0x06, 0x00, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x78, 0x78, 0x00, 0x00, 0x67, 0xe7, 0x80, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x67, 0xe7, 0xf8, 0x78, 0x67, 0xe7, 0xe7, 0xe7, 0xf9, 0xf9, 0x80, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x1e, 0x1e, 0x7f, 0xff, 0xff, 0xff, 0x80, 0x00, 0x67, 0xe7, 0xe6, 0x66, 0x79, 0xf9, 0x80, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x61, 0xe1, 0x9e, 0x1e, 0x1e, 0x1e, 0x1f, 0x9f, 0x80, 0x00, 0x67, 0xe7, 0x80, 0x00, 0x78, 0x78, 0x7e, 0x7e, 0x78, 0x78, 0x61, 0xe1, 0xe6, 0x66, 0x00, 0x00, 0x66, 0x66, 0x19, 0x99, 0xe6, 0x66, 0x79, 0xf9, 0xe6, 0x66, 0x66, 0x66, 0x61, 0xe1, 0xf8, 0x78, 0x61, 0xe1, 0xe7, 0xe7, 0xe6, 0x66, 0x1e, 0x1e, 0x79, 0xf9, 0x87, 0x87, 0xe7, 0xe7, 0x80, 0x00, 0x67, 0xe7, 0xf8, 0x78, 0x78, 0x78, 0x1f, 0x9f, 0xe0, 0x60, 0x1f, 0x9f, 0x9e, 0x1e, 0x00, 0x00, 0x67, 0xe7, 0xf9, 0xf9, 0x80, 0x00, 0x67, 0xe7, 0xe7, 0xe7, 0xf9, 0xf9, 0xfe, 0x7e, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x7f, 0xff, 0xfe, 0x7e, 0x67, 0xe7, 0xff, 0xff, 0xe7, 0xe7, 0xe6, 0x66, 0x61, 0xe1, 0x98, 0x18, 0x07, 0x87, 0xe7, 0xe7, 0x99, 0x99, 0xfe, 0x7e, 0x7f, 0xff, 0xf8, 0x78, 0x67, 0xe7, 0x80, 0x00, 0x00, 0x00, 0x67, 0xe7, 0x80, 0x00, 0x78, 0x78, 0x60, 0x60, 0x18, 0x18, 0x01, 0x81, 0xf8, 0x78, 0x1f, 0x9f, 0x87, 0x87, 0xe1, 0xe1, 0xe6, 0x66, 0x7f, 0xff, 0xff, 0xff, 0x80, 0x00, 0x66, 0x66, 0x00, 0x00, 0x7f, 0xff, 0x9e, 0x1e, 0x78, 0x78, 0x00, 0x00, 0x7e, 0x7e, 0x7e, 0x7e, 0x06, 0x06, 0x00, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x07, 0x87, 0xf9, 0xf9, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x67, 0xe7, 0xf8, 0x78, 0x00, 0x00, 0x60, 0x60, 0x19, 0x99, 0xf8, 0x78, 0x01, 0x81, 0xf9, 0xf9, 0xf8, 0x78, 0x67, 0xe7, 0x9f, 0x9f, 0x98, 0x18, 0x06, 0x06, 0x7f, 0xff, 0xff, 0xff, 0x9e, 0x1e, 0x7f, 0xff, 0xff, 0xff, 0x80, 0x00, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x00, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x7e, 0x7e, 0x00, 0x00, 0x79, 0xf9, 0x87, 0x87, 0xf8, 0x78, 0x79, 0xf9, 0xe6, 0x66, 0x61, 0xe1, 0x86, 0x06, 0x78, 0x78, 0x01, 0x81, 0xe1, 0xe1, 0xf8, 0x78, 0x61, 0xe1, 0x86, 0x06, 0x19, 0x99, 0xff, 0xff, 0x9f, 0x9f, 0x80, 0x00, 0x18, 0x18, 0x78, 0x78, 0x67, 0xe7, 0xf9, 0xf9, 0xe0, 0x60, 0x7f, 0xff, 0x9e, 0x1e, 0x60, 0x60, 0x7e, 0x7e, 0x18, 0x18, 0x66, 0x66, 0x1f, 0x9f, 0x9f, 0x9f, 0x87, 0x87, 0xf9, 0xf9, 0x80, 0x00, 0x00, 0x00, 0x7e, 0x7e, 0x78, 0x78, 0x7e, 0x7e, 0x7f, 0xff, 0xfe, 0x7e, 0x01, 0x81, 0x98, 0x18, 0x06, 0x06, 0x1f, 0x9f, 0x9f, 0x9f, 0xe7, 0xe7, 0xf8, 0x78, 0x06, 0x06, 0x00, 0x00, 0x1f, 0x9f, 0xff, 0xff, 0x99, 0x99, 0xe6, 0x66, 0x19, 0x99, 0xe0, 0x60, 0x78, 0x78, 0x7e, 0x7e, 0x01, 0x81, 0xff, 0xff, 0x9f, 0x9f, 0x9f, 0x9f, 0xe6, 0x66, 0x78, 0x78, 0x7e, 0x7e, 0x00, 0x00, 0x79, 0xf9, 0x87, 0x87, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xe7, 0xe7, 0xf9, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xfe, 0x7e, 0x79, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0x81, 0x81, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0xf8, 0x78, 0x7f, 0xff, 0xe7, 0xe7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x7e, 0x79, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xe7, 0xe7, 0xf9, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xe7, 0xe7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x78, 0x7f, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0x81, 0x81, 0xff, 0xff, 0xe0, 0x60, 0x19, 0x99, 0x80, 0x00, 0x60, 0x60, 0x07, 0x87, 0x80, 0x00, 0x06, 0x06, 0x1f, 0x9f, 0x81, 0x81, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0xf8, 0x78, 0x7f, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0x9f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x67, 0xe7, 0xf9, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xfe, 0x7e, 0x79, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xe0, 0x60, 0x06, 0x06, 0x00, 0x00, 0x60, 0x60, 0x07, 0x87, 0xe0, 0x60, 0x06, 0x06, 0x1f, 0x9f, 0xf8, 0x78, 0x7f, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0x81, 0x81, 0xff, 0xff, 0xf9, 0xf9, 0xff, 0xff, 0x9f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x7e, 0x7e, 0x79, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xe7, 0xe7, 0xf9, 0xf9, 0xff, 0xff, 0xf9, 0xf9, 0xfe, 0x7e, 0x79, 0xf9, 0xe1, 0xe1, 0x86, 0x06, 0x07, 0x87, 0xf9, 0xf9, 0x81, 0x81, 0xf9, 0xf9, 0x81, 0x81, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf8, 0x78, 0x79, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf8, 0x78, 0x07, 0x87, 0xff, 0xff, 0xe6, 0x66, 0x7f, 0xff, 0xe1, 0xe1, 0xff, 0xff, 0xf9, 0xf9, 0x9f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x19, 0x99, 0xe6, 0x66, 0x79, 0xf9, 0xfe, 0x7e, 0x61, 0xe1, 0x99, 0x99, 0x99, 0x99, 0x87, 0x87, 0xf8, 0x78, 0x79, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0x81, 0x81, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xff, 0xff, 0xe1, 0xe1, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0x98, 0x18, 0x7f, 0xff, 0xe6, 0x66, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x1f, 0x9f, 0xf9, 0xf9, 0xe7, 0xe7, 0xfe, 0x7e, 0x19, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81, 0x81, 0x99, 0x99, 0x99, 0x99, 0x98, 0x18, 0x19, 0x99, 0x99, 0x99, 0x98, 0x18, 0x19, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x81, 0x81, 0x99, 0x99, 0x86, 0x06, 0x06, 0x06, 0x19, 0x99, 0xe0, 0x60, 0x01, 0x81, 0x86, 0x06, 0x78, 0x78, 0x60, 0x60, 0x01, 0x81, 0x98, 0x18, 0x19, 0x99, 0x81, 0x81, 0x98, 0x18, 0x19, 0x99, 0x81, 0x81, 0x98, 0x18, 0x07, 0x87, 0x81, 0x81, 0x80, 0x00, 0x79, 0xf9, 0xfe, 0x7e, 0x61, 0xe1, 0x87, 0x87, 0x9f, 0x9f, 0xe0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xe0, 0x60, 0x60, 0x60, 0x60, 0x60, 0x00, 0x00, 0x00, 0x00, 0x61, 0xe1, 0x9e, 0x1e, 0x19, 0x99, 0xe1, 0xe1, 0x80, 0x00, 0x00, 0x00, 0x18, 0x18, 0x01, 0x81, 0x98, 0x18, 0x19, 0x99, 0x99, 0x99, 0x81, 0x81, 0x98, 0x18, 0x01, 0x81, 0xf9, 0xf9, 0x80, 0x00, 0x01, 0x81, 0x87, 0x87, 0x81, 0x81, 0x81, 0x81, 0xe1, 0xe1, 0xfe, 0x7e, 0x7f, 0xff, 0xe0, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x79, 0xf9, 0x9e, 0x1e, 0x79, 0xf9, 0x87, 0x87, 0x9e, 0x1e, 0x61, 0xe1, 0x80, 0x00, 0x00, 0x00, 0x61, 0xe1, 0x98, 0x18, 0x61, 0xe1, 0x98, 0x18, 0x00, 0x00, 0x19, 0x99, 0x81, 0x81, 0x98, 0x18, 0x67, 0xe7, 0xff, 0xff, 0xfe, 0x7e, 0x1e, 0x1e, 0x78, 0x78, 0x07, 0x87, 0x87, 0x87, 0x87, 0x87, 0xfe, 0x7e, 0x60, 0x60, 0x78, 0x78, 0x60, 0x60, 0x7f, 0xff, 0xe0, 0x60, 0x60, 0x60, 0x60, 0x60, 0x19, 0x99, 0xfe, 0x7e, 0x19, 0x99, 0x86, 0x06, 0x01, 0x81, 0xe6, 0x66, 0x18, 0x18, 0x18, 0x18, 0x61, 0xe1, 0x99, 0x99, 0xe0, 0x60, 0x19, 0x99, 0x99, 0x99, 0x81, 0x81, 0x98, 0x18, 0x19, 0x99, 0xfe, 0x7e, 0x7e, 0x7e, 0x79, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x9f, 0x9f, 0x86, 0x06, 0x78, 0x78, 0x7f, 0xff, 0xe0, 0x60, 0x78, 0x78, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x06, 0x06, 0x06, 0x06, 0x19, 0x99, 0xe0, 0x60, 0x06, 0x06, 0x01, 0x81, 0xf9, 0xf9, 0xe6, 0x66, 0x07, 0x87, 0xe0, 0x60, 0x67, 0xe7, 0x87, 0x87, 0x80, 0x00, 0x1e, 0x1e, 0x1e, 0x1e, 0x00, 0x00, 0x07, 0x87, 0x81, 0x81, 0x80, 0x00, 0x79, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x81, 0x81, 0xfe, 0x7e, 0x07, 0x87, 0x98, 0x18, 0x06, 0x06, 0x07, 0x87, 0xfe, 0x7e, 0x06, 0x06, 0x78, 0x78, 0x60, 0x60, 0x00, 0x00, 0x00, 0x00, 0x61, 0xe1, 0x9e, 0x1e, 0x19, 0x99, 0xe1, 0xe1, 0x86, 0x06, 0x01, 0x81, 0xe0, 0x60, 0x67, 0xe7, 0x87, 0x87, 0xe0, 0x60, 0x1e, 0x1e, 0x1e, 0x1e, 0x00, 0x00, 0x1e, 0x1e, 0x79, 0xf9, 0x80, 0x00, 0x01, 0x81, 0x87, 0x87, 0xfe, 0x7e, 0x01, 0x81, 0xff, 0xff, 0xff, 0xff, 0x86, 0x06, 0x18, 0x18, 0x07, 0x87, 0x99, 0x99, 0xf8, 0x78, 0x06, 0x06, 0x7e, 0x7e, 0x7e, 0x7e, 0x67, 0xe7, 0x86, 0x06, 0x60, 0x60, 0x78, 0x78, 0x07, 0x87, 0x9f, 0x9f, 0x80, 0x00, 0x7e, 0x7e, 0x07, 0x87, 0x98, 0x18, 0x66, 0x66, 0x1f, 0x9f, 0x86, 0x06, 0x78, 0x78, 0x7e, 0x7e, 0x18, 0x18, 0x78, 0x78, 0x67, 0xe7, 0x81, 0x81, 0x81, 0x81, 0xff, 0xff, 0x9f, 0x9f, 0x81, 0x81, 0x9e, 0x1e, 0x07, 0x87, 0x98, 0x18, 0x66, 0x66, 0x1f, 0x9f, 0x86, 0x06, 0x78, 0x78, 0x7e, 0x7e, 0x18, 0x18, 0x60, 0x60, 0x06, 0x06, 0x07, 0x87, 0xe1, 0xe1, 0x80, 0x00, 0x1f, 0x9f, 0x87, 0x87, 0xff, 0xff, 0x99, 0x99, 0x99, 0x99, 0xe0, 0x60, 0x7f, 0xff, 0xe6, 0x66, 0x18, 0x18, 0x66, 0x66, 0x78, 0x78, 0x1f, 0x9f, 0x9e, 0x1e, 0x66, 0x66, 0x78, 0x78, 0x1e, 0x1e, 0x01, 0x81, 0x9f, 0x9f, 0xff, 0xff, 0x99, 0x99, 0x99, 0x99, 0xe0, 0x60, 0x7f, 0xff, 0xe6, 0x66, 0x18, 0x18, 0x66, 0x66, 0x78, 0x78, 

There is a small bug that I am noticing, but it only effects images that have been saved in certain formats, so I doubt anyone will run into it before I fix it. Which image are you trying to convert?

1 Like

Personally I do the conversion manually.
Just look at a sprite, count the pixels and figure out the corresponding number in my head.

If you’re not very good at converting between decimal, binary and hex in your head, switch the windows calculator to programmer mode.

That’s more hardcore than me using Notepad as my IDE of choice.

If you mention the word ‘hardcore’ in a programming context it’s only a matter of time until that xkcd comic makes an appearance.

Seriously though, when it comes to embedded systems, being able to mentally convert between binary, decimal and hex is a very good skill to have. I’d probably use a program if I’d ever had to convert more than about four in one go.

I’d be fine with notepad if it didn’t insist on having the old windows 2-byte line endings. For arduboy stuff I use Notepad++ mainly.

Hey, @jos3k4! I fixed up some of the bugs and fleshed it out a bit. Lemme know if it’s working for you or not! :slight_smile:

That’s great. :stuck_out_tongue:

1 Like

Let’s have a look, probably I didn’t used it on a good way. Thank you very much!

Just lemme know if you run into any problems. I’d love to help if I can. :wink: