ESP32S2_Cal_Demo/README.md

14 lines
392 B
Markdown

# _ESP32 S2 Cal Demo_
This is a demo project for a certain ESP32-S2 board.
## How to create 4-indexed(2bit) image files
Use imagemagick and `bin2c` utility from CUDA toolchain
```bash
# Create an indexed image from any input file
magick 57852730_p0_4indexed.png -depth 2 57852730_p0_4indexed.gray
# Convert the image to C array
bin2c 57852730_p0_4indexed.gray > 57852730_p0_4indexed.c
```