escpos-ts API - v1.0.0
    Preparing search index...

    Function cashDrawerDecSequence

    • Build a custom cash-drawer kick sequence from raw byte values.

      Allows sending a non-standard timing pulse when the default CD_KICK_2 / CD_KICK_5 timings are insufficient.

      Parameters

      • esc: number

        ESC byte (0x1B).

      • p: number

        Pin selector byte (0x70).

      • m: number

        Pin number byte (0 = pin 2, 1 = pin 5).

      • t1: number = 50

        On-time in units of 2 ms (default: 50 → 100 ms).

      • t2: number = 50

        Off-time in units of 2 ms (default: 50 → 100 ms).

      Returns Buffer

      Buffer containing the five-byte kick sequence.

      1.0.0