Add screen::unpackPNG()

This commit is contained in:
Michal Moskal
2017-10-30 12:45:37 +00:00
parent 4e99cd3ef1
commit c085094394
6 changed files with 140 additions and 2 deletions

View File

@ -70,6 +70,12 @@ declare namespace serial {
//% shim=serial::writeDmesg
function writeDmesg(): void;
}
declare namespace screen {
/** Decompresses a 1-bit gray scale PNG image to icon format. */
//% shim=screen::unpackPNG
function unpackPNG(png: Buffer): Buffer;
}
declare namespace screen {
/** Double size of an icon. */