Function: encodeDrawerKick()
function encodeDrawerKick(language: "esc-pos" | "star-prnt" | "star-line", config?: Partial<{
offTimeMs: number;
onTimeMs: number;
pin: 2 | 5;
}>): Uint8Array;Defined in: shared/peripherals/encoder.ts:103
Standalone drawer-kick byte sequence for the given printer language. The library emits ESC p for ESC/POS-family printers and the Star Line Mode kick sequence for star-line.
Parameters
| Parameter | Type |
|---|---|
language | "esc-pos" | "star-prnt" | "star-line" |
config? | Partial<{ offTimeMs: number; onTimeMs: number; pin: 2 | 5; }> |
Returns
Uint8Array