Vermes
Advanced Member level 4
This project is a solution when you need a program on PC, which allows you to convert fonts and images to the C array, in order to use it in the program for microcontroller. They are saved in monochrome, where one bit of the variable in the array (in the program) corresponds to one pixel on the screen. Data on the picture are written line by line into the array. Also drawing, moving and a possibility to generate the entire alphabet in a single click is available. The array, depending on the width of the image or how much memory, can be a set of 8, 16 or 32-bit variables.
Possibilities:
- defining the size of the box at which there will be a font (or image), moving picture drawn at one pixel vertically and horizontally
- generation of fonts on base of selected Windows fonts, conversion of ASCII numbers to fonts, generation of strings and characker set (e.g. the alphabet)
- drawing and pasting from the clipboard and file of monochrome images
- definition of the form of writing to the array: byte, short integer, integer
- „infeeding” bits to the least or most significant, if the font has width of e.g. 12 pixels, and the data that represents it – 16 bits
- record from the least significant bit to the most significant, and vice versa
- the possibility of determining the form of the C array
Link to original thread (useful attachment) – Program do konwersji czcionek i obrazkow na postac binarną