Module sensors

Module sensors 

Source

Structs§

Backlight
Holds information about backlight
Battery
Contains capacity and current status of battery
TemperatureSensor
Contains temperature sensor’s name and recorded temperature

Enums§

BatteryStatus
Represents the current status of battery

Functions§

batteryInfo
Returns battery current status and capacity as specified in Battery struct, returns None if it’s not possible to retrieve data
getBacklight
Returns the current backlight brightness and the maximum possible value or None if it’s not possible to retrieve data
temperatureSensors
Returns every temperature sensor in the system, using the TemperatureSensor struct