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,
true
if open,false
if 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
true
if the battery is charging - getPedometerState ()
-
Return whether or not the pedometer is counting.
Returns:
-
boolean
true
if 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
true
if everything went fineOr
-
boolean
false
in case of error - integer error code