libwebsockets/minimal-examples/embedded/esp32/esp-heltec-wb32/scan/scan.sh
Andy Green 63c1e8ba00 esp32-wrover-kit
Add lws_display and minimal example support for esp32-wrover to match wsp32-heltec-wb32

Since no usable buttons that don't affect something else on wrover kit, assumes
a button to 0V on GPIO14.
2020-06-30 19:35:41 +01:00

8 lines
294 B
Bash
Executable file

#!/bin/bash
convert -size 128x64 /tmp/128x64.png -monochrome output.bmp
dd if=output.bmp bs=1 skip=130 | hexdump -Cv | tr -s ' ' | cut -d' ' -f2-17 | grep ' ' | sed "s/^/0x/g" | sed "s/\ /,\ 0x/g" > pic.h.1
cat pic.h.1 | sed "s/\$/,/g" > pic.h
gcc -o scan scan.c && ./scan > ../banded-img.h