Skip to content
/ img2c Public

Script that converts bitmap images to usable C++ code for use in drawing for arduino projects

Notifications You must be signed in to change notification settings

pehdfms/img2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

To use, run the python script with a bitmap image in the same folder with the name "input.bmp". The script will automatically generate valid C++ code for use in drawing sprites for Arduino. Be careful with the amount of memory being used! This script will give you an idea of how many bytes are being used when ran, and a warning for sizes bigger than 2KB. The result will be saved in a file named "output.txt".

Para usar, rode o script do python com uma imagem em bitmap com o nome "input.bmp" na mesma pasta. O script ira automaticamente gerar codigo valido em C++ para usar nas sprites do Arduino. Tome cuidado com a quantidade de memoria usada! Este programa ira te dar uma media de quantos bytes serao usados, e um alerta quando este valor ultrapassar 2KB. O resultado sera salvo em um arquivo "output.txt".

REQUERIMENTOS / REQUIREMENTS: - Python 3.x - OpenCV Library

About

Script that converts bitmap images to usable C++ code for use in drawing for arduino projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages