Io Reference







Apple   /   AppleSensors   /   AppleSensors





A singleton which on Apple computers can:
  • get and set display and keyboard brightness
  • read left and right ambient light sensors (laptops only)
  • read accelerometer sensor (laptops only)
Example use;
	
sensors = AppleSensors clone
value := sensors getRightLightSensor
 
 
 



getBatteryTemperature

Returns a number for the Battery temperature sensor.
getCPUTemperature

Returns a number for the CPU temperature sensor.
getDisplayBrightness

Returns a number for the display brightness.
getGPUTemperature

Returns a number for the GPU temperature sensor.
getKeyboardBrightness

Returns a number for the keyboard brightness.
getLeftLightSensor

Returns a number for the left ambient light sensor.
getPCHTemperature

Returns a number for Intel's Platform Controller Hub temperature sensor.
getPalmTemperature

Returns a number for the Palm Rest Area temperature sensor.
getPowerTemperature

Returns a number for the Power board temperature sensor.
getRAMTemperature

Returns a number for the RAM temperature sensor.
getRightLightSensor

Returns a number for the right ambient light sensor.
setDisplayBrightness(aNumber)

Sets the display brightness. Returns self.
setKeyboardBrightness(aNumber)

Sets the keyboard brightness. Returns self.
smsVector(aVector)

Sets aVector to the current x, y and z accelerometer values. Returns true on success and false on failure.