Skip to content

javos65/H7-CArray-Converter-for-USBDisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-array converter for images and fonts on Arduino USB-Drive

logo

A handy program tool for generating image C-array for graphics - images (and fonts)


About

Annoyed by the limited online conversion possibilites, this tools makes it easier to generate your c-array versions+ It make use of the USB-Disk option to read and write files on the FatFilesystem.

This code was made by using Portenta H7 (and HAT expansion board) supporting HDMI over USB-C The STM32H7 has a fancy Chromart accelerator, using a special 2D DMA function (DMA2D) to transfer Images to memory, including format and blending. Unfortunatly, its not always easy to start with the right file formats.

Best online C-array programs are as folllows:

Color-Pickers for RGB565 / RGB8888 / RGB1555 or ARGB1444:

Still some formats are hard to get like ARGB4444, ARGB1555 or the nibble-swopped A4 for fonts. This tool runs on the Portenta H7 in USB-drive mode. it reads your c-array from Code or your pgn / bmp files from disk, and creates a C-array file on the drive.

logo

Wiring

Connect H7 to HAT expansion board , load the program, and fiddle around.

  • Portenta Carrier : Portenta Hat Carrier SKU ASX00049 Barcode 7630049204041
  • Portenta board : Portenta H7 SKU ABX00042 Barcode 7630049202252

Features:

  • Convert single PNG / BMP file into C-array
  • Convert all PNG files on the USB-drive into one C-array file, incl structures
  • Convert all BMP files on the USB-drive into one C-array file, incl structures
  • Convert A4 fonts to the right nibble posisiton (swopping nibles in the byte)
  • Convert exsisting C-array into new arrays, swopping Red/Blue or to creating Alpha channels

To do:

  • adding more Font support
  • adding BMP-format read support - done

And please, don't ask about the 0xB19B00B5

Releases

No releases published

Packages

No packages published