UNPKG

pxt-microbit

Version:

micro:bit target for Microsoft MakeCode (PXT)

15 lines (9 loc) 442 B
# hardware Version Returns a string containing the the major version and minor version of the @boardname@. ```sig control.hardwareVersion() ``` ## Returns * a [string](/types/string) that contains the major and minor versions of the @boardname@. The string has an `"x.y"` format like `"1.5"`, `"2.1"`, or `"2.2"`. ## See also [device name](/reference/control/device-name), [device serial number](/reference/control/device-serial-number)