Documentation
    Preparing search index...
    • React Hook that updates when the given Pixel's prop changes.

      Type Parameters

      • T extends
            | "systemId"
            | "name"
            | "rssi"
            | "pixelId"
            | "ledCount"
            | "colorway"
            | "dieType"
            | "firmwareDate"
            | "batteryLevel"
            | "isCharging"
            | "rollState"
            | "currentFace"
            | "currentFaceIndex"
            | "status"
            | (keyof PixelOwnMutableProps)

      Parameters

      • pixel: Pixel | undefined

        The Pixel for which to watch the prop.

      • prop: T

        The prop to watch.

      Returns PixelMutableProps[T] | undefined

      The current value of the given prop on the given Pixel.

      Use usePixelEvent to watch the RSSI value.