micro:bit universal hex
    Preparing search index...

    Function isUniversalHex

    • Checks if the provided hex string is a Universal Hex.

      Very simple test only checking for the opening Extended Linear Address and Block Start records.

      The string is manually iterated as this method can be x20 faster than breaking the string into records and checking their types with the ihex functions.

      Parameters

      • hexStr: string

        Hex string to check

      Returns boolean

      True if the hex is an Universal Hex.