rmapi-js
    Preparing search index...

    Function decodeBrush

    • decode a raw brushType code to a pen name

      Best-effort and advisory: the reMarkable pen codes come in two firmware families and new ones appear over time, so an unrecognized code returns undefined. The raw brushType int stays authoritative.

      Parameters

      • code: number

      Returns RmBrush | undefined