Validates micro:bit board IDs.

Constructors

Properties

id: number

Methods

  • Return the board ID using the default ID for the board type. Used to integrate with MicropythonFsHex.

    Returns BoardId

  • toString matches the input to parse.

    Returns string

    the ID as a string.

  • Parameters

    • value: string

      The ID as a hex string with no 0x prefix (e.g. 9900).

    Returns BoardId

    the valid board ID

    if the ID isn't known.