You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no option to choose LSB or MSB first in the byte. For SSD 1306 i have problem the byte in vertical order is generated reversely i understand the byte orientation is reversed. There is no option to choose MSB first or LSB first. i modified the code to use for my application and it works
image2cpp is a simple tool to change images into byte arrays (or your array back into an image) for use with Arduino and (monochrome) displays such as OLEDs.
It was originally made to work with the Adafruit OLED library. An example sketch for Arduino and this library can be found here.
More info (and credits) can be found in the Github repository. This is also where you can report any issues you might come across.
This tool also works offline. Simply save this page to your computer and open the file in your browser.
0 - 255; if the brightness of a pixel is above the given level the pixel becomes white, otherwise they become black. When using alpha, opaque and transparent are used instead.
Scaling
original size
scale to fit, keeping proportions
stretch to fill canvas
stretch to fill canvas horizontally
stretch to fill canvas vertically
Center:
horizontally
vertically
Note: centering the image only works when using a canvas larger than the original image.
3. Preview
4. Output
Code output format
plain bytes
Arduino code
Arduino code, single bitmap
Adafruit GFXbitmapFont
Adds some extra Arduino code around the output for easy copy-paste into
this example.
If multiple images are loaded, generates a byte array for each and appends a counter to the identifier.
Adds some extra Arduino code around the output for easy copy-paste.
If multiple images are loaded, generates a single byte array.
Creates a GFXbitmapFont formatted ouput. Used by a modified version of the Adafruit GFX library.
GitHub project and example here.
First ASCII character value is used only if a glyph identifier of length equal to 1 is not provided for each image. The value itself will be incremented by 1 for each glyph.
First ASCII character (dec):
x advance:
Identifier:
Draw mode:
Horizontal - 1 bit per pixel
Vertical - 1 bit per pixel MSB first
Vertical - 1 bit per pixel LSB first
Horizontal - 2 bytes per pixel (565)
Horizontal - 1 bit per pixel alpha map
If your image looks all messed up on your display, like the image below, try using a different mode.
There is no option to choose LSB or MSB first in the byte. For SSD 1306 i have problem the byte in vertical order is generated reversely i understand the byte orientation is reversed. There is no option to choose MSB first or LSB first. i modified the code to use for my application and it works
image2cpp
image2cpp is a simple tool to change images into byte arrays (or your array back into an image) for use with Arduino and (monochrome) displays such as OLEDs. It was originally made to work with the Adafruit OLED library. An example sketch for Arduino and this library can be found here.
More info (and credits) can be found in the Github repository. This is also where you can report any issues you might come across.
This tool also works offline. Simply save this page to your computer and open the file in your browser.
1. Select image
or
1. Paste byte array
<textarea id="byte-input" class="byte-input"></textarea>2. Image Settings
3. Preview
4. Output
GFXbitmapFont
formatted ouput. Used by a modified version of the Adafruit GFX library. GitHub project and example here.First ASCII character value is used only if a glyph identifier of length equal to 1 is not provided for each image. The value itself will be incremented by 1 for each glyph.
The text was updated successfully, but these errors were encountered: