Height is up to you, but the width should be in multiples of 8 to correspond to the 8-bit wide storage scheme. Open the GIMP and create a new file with the dimensions that you require. This can be used for generating fonts, or converting larger images. This data can then be read out of the array and manipulated in the AVR code for use in whatever format you need for your display. The Python script takes one or more 1-bit color palette indexed BMP images, cuts out the header and any unused column data, and outputs a header file with the information stored in a one dimensional array in PROGMEM. ![]() ![]() We are working on an Ubuntu 9.04 system but because these are cross-platform tools you should be able to do this on any OS. We’ll walk you through it after the break.įor this tutorial we will be using the GNU Image Manipulation Program in conjunction with Python. Our python script will convert BMP files into a header file ready for use with AVR microcontrollers. We’ve used some readily available tools to make this a bit easier for your next project. Displaying custom fonts or images on an LCD screen using a microcontroller usually requires quite a bit of work.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |