mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2025-01-09 21:25:40 +00:00
63c1e8ba00
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.
8 lines
294 B
Bash
Executable file
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
|
|
|