From Inspired-Lua Wiki
Jump to: navigation, search

platform.hw is a function that is part of the platform library.

platform.hw() returns a numeric value that indicates the CPU speed of the host hardware. The higher the number, the faster the hardware.

Examples :

Return value Host platform
3 TI-Nspire ClickPad (B&W) and CX handheld devices
7 Computer software or Web Player

This is useful to determine how short the period of a timer can be set. You can precisely know what device is in use by combining that with the platform.isColorDisplay() function, for example.

This has been introduced in TI-Nspire OS 3.2 (Changes).


platform.hw() with no arguments.