Alcor6L/eLua/pd

From Wikibooks, open books for an open world
Jump to: navigation, search

Overview[edit]

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

Functions[edit]

pd.platform[edit]

platform = pd.platform()

Get platform name.

Returns:

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

pd.cpu[edit]

Get CPU name.

cpu = pd.cpu()

Returns:

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

pd.board[edit]

Get board name.

board = pd.board()

Returns:

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