Alcor6L/eLua/pd

From Wikibooks, open books for an open world
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This module contains functions that access specific platform data. Useful if the code needs to know on which platform it runs.

Functions

[edit | edit source]

pd.platform

[edit | edit source]
platform = pd.platform()

Get platform name.

Returns:

  • platform - the name of the platform on which eLua is running.

pd.cpu

[edit | edit source]

Get CPU name.

cpu = pd.cpu()

Returns:

  • cpu - the name of the CPU of the platform on which eLua is running.

pd.board

[edit | edit source]

Get board name.

board = pd.board()

Returns:

  • board - the name of the board on which eLua is running.