ESP32S2_Cal_Demo/README.md

14 lines
392 B
Markdown
Raw Permalink Normal View History

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