CHDK Wiki
Advertisement

CHDK/LUALIB/propcase.lua[]

This is a standard lua module included in the full CHDK distribution. It provides camera independent access to PropertyCase numbers using the same mnemonic names used in the CHDK source (without the PROPCASE_ prefix).

Using the module[]

The module returns a table of PropertyCase numbers appropriate to the cameras propset, indexed by name. This module does not set any global variables. Instead, you must assign the return value of require to a variable through which you will access the modules members.

props=require("propcase")
mytv=get_prop(props.TV)

Dependencies[]

  • Requires modules GEN/propsetN
Advertisement