It looks like something went wrong in the generate.js script for my two PNGs because when I do require("Storage").read("messageicons.img", 20*76, 76) I get \x18\x18\x81 and then a bunch of \0\0\0. Basically there is no data for the two icons I added.
Maybe something is wrong with the PNG files, but I didn't get any warning/error when running the script.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It looks like something went wrong in the
generate.js
script for my two PNGs because when I dorequire("Storage").read("messageicons.img", 20*76, 76)
I get\x18\x18\x81
and then a bunch of\0\0\0
. Basically there is no data for the two icons I added.Maybe something is wrong with the PNG files, but I didn't get any warning/error when running the script.