Update docs

This commit is contained in:
MultiMote 2025-01-27 11:38:40 +03:00
parent 3d63346c82
commit 19c3072d13

@ -79,15 +79,19 @@ export class Utils {
* *
* For `split` mode: * For `split` mode:
* *
* If data length is more than `printhead size / 8`, counts are [0, LL, HH] of total `non-zero` bit count * Data splitted to the three chunks (last chunk sizes can be lesser, base chunk size is `printhead size / 8 / 3`)
*
* Otherwise data splitted to the three chunks (last chunk sizes can be lesser, base chunk size is `printhead size / 8 / 3`)
* and `non-zero` bit count calculated from each chunk. * and `non-zero` bit count calculated from each chunk.
* *
* If data size is more than `printheadPixels / 8`, only `total` mode can be used.
*
* For `total` mode: * For `total` mode:
* *
* Return total number of pixel in little-endian format: `[0, LL, HH]` * Return total number of pixel in little-endian format: `[0, LL, HH]`
* *
* For `auto` mode:
*
* By default `split` mode used. If it is not available, `total` mode used.
*
**/ **/
public static countPixelsForBitmapPacket( public static countPixelsForBitmapPacket(
buf: Uint8Array, buf: Uint8Array,