4BITIMAGE
by Sandro MaffiodoWHAT IS:
4BITIMAGE is a simple web tool that convert images for the ESPVGAX2 library. The ESPVGAX2 library is a VGA signal generator for ESP8266. It can display a 320x240px or 256x240px framebuffer with 16 colors.This tool convert the image FORMAT, by packing 8 pixels in one 32 bit word. This tool DONT perform any color conversion, nor any dithering or image resample. You can use this palette to convert your images to match the my colors but if you wire the 4 pins differently you can create your own color palette. Keep in mind that if you use a different sets of color component bits you might need to modify the source of these tool because it pack 4 bit in this order: R1-G1-B1-G2.
OPTIONS:
- you can split your image in multiple sprites using the *sprite height* option
- *sprites height*, if given, must be the same for all sprites
- there must be only one sprite for each line (no sprite grid)
INPUT:
source image:output number format: decimal binary hexadecimal
generate data as a single line
sprite height: (zero if there are only one sprite)
output variable name: