Module ctr.ptm
The ptm module.
Usage:
local ptm = require("ctr.ptm")
Functions
| init () | Initialize the PTM module. |
| shutdown () | Disable the PTM module. |
| getShellState () | Return the shell state. |
| getBatteryLevel () | Return the battery level. |
| getBatteryChargeState () | Return whether or not the battery is charging. |
| getPedometerState () | Return whether or not the pedometer is counting. |
| getTotalStepCount () | Return the total steps taken with the system. |
configureNew3DSCPU (enable) ![]() |
Setup the new 3DS CPU features (overclock, 4 cores ...) |
Functions
- init ()
- Initialize the PTM module.
- shutdown ()
- Disable the PTM module.
- getShellState ()
-
Return the shell state.
Returns:
-
boolean
shell state,
trueif open,falseif closed. - getBatteryLevel ()
-
Return the battery level.
Returns:
-
number
battery level (
5: fully charged;0: empty) - getBatteryChargeState ()
-
Return whether or not the battery is charging.
Returns:
-
boolean
trueif the battery is charging - getPedometerState ()
-
Return whether or not the pedometer is counting.
Returns:
-
boolean
trueif the pedometer is counting - getTotalStepCount ()
-
Return the total steps taken with the system.
Returns:
-
number
step count
-
configureNew3DSCPU (enable)
-
Setup the new 3DS CPU features (overclock, 4 cores ...)
Parameters:
- enable boolean enable the New3DS CPU features
Returns:
-
boolean
trueif everything went fineOr
-
boolean
falsein case of error - integer error code