The attached Python script "file-cheader-save.py" is a plugin for the GIMP (www.gimp.org) which allows (small) grayscale images to be saved directly as a C header file containing an array of pixel data. Edit your grayscale image then select "Save As" and from GIMPs (long) list of formats pick "C Source code header", either 1 bit or 4 bit. Example output shown below, although it easily modified to suit your specific needs.
This forum won't allow .py files to be uploaded, so please remove the .txt extension I added to get around this.
This has been tested on Linux and Windows with the TI LM3S8962 EVK, see the Python source file for the install and use instructions.
Try out Inkscape, it's a nice vector graphics editor which can be used to make icons, export to GIMP, then to your OLED.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.