A helper class that generates various types of packets.

Constructors

Methods

  • Printer powers off if black pixel count > 6

    Parameters

    • pos: number
    • repeats: number
    • data: Uint8Array
    • printheadPixels: number
    • countsMode: "auto" | "split" | "total" = "auto"

    Returns NiimbotPacket

  • B1 behavior: when totalPages > 1 after pageEnd paper stops at printhead position and waits for next page. When last page (totalPages) printed paper moved further.

    D110 behavior: ordinary.

    Parameters

    • totalPages: number

      Declare how many pages will be printed

    • pageColor: number = 0

    Returns NiimbotPacket