https://github.com/reyco2000/c_array_rgb565_from_image_tft
A bitmap converter for C array output for color images used on embedded systems
https://github.com/reyco2000/c_array_rgb565_from_image_tft
bitmap-c-array esp32 esp8266-arduino image-to-c-array rgb565 tft-display
Last synced: 3 months ago
JSON representation
A bitmap converter for C array output for color images used on embedded systems
- Host: GitHub
- URL: https://github.com/reyco2000/c_array_rgb565_from_image_tft
- Owner: reyco2000
- Created: 2024-07-22T18:27:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-22T18:31:12.000Z (about 1 year ago)
- Last Synced: 2025-02-28T07:39:42.031Z (8 months ago)
- Topics: bitmap-c-array, esp32, esp8266-arduino, image-to-c-array, rgb565, tft-display
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This program reads a JPEG file, converts it into an RGB565 C array,used on embedded systems with TFT screens
and writes the C array to a file with the same name as the input file but with a .c extension.
The program takes the filename as an argument from the command line.
The output C array is represented as const unsigned char, with the low byte first, followed by the high byte.
Additionally, the output file includes a comment with the image size.
Dependencies: Pillow library for image processing
To install Pillow, run: pip install Pillow
Usage: python convert_to_rgb565.pyAuthor: Reinaldo Torres reyco2000@gmail.com July 2024
This code is free and open source, and can be used and modified for any purpose.