
Chapter 22: Sensors
Code Samples for the Magnetometer
249
Psion Mobile Devices Developers Guide
22.4.2 Code Samples for the Magnetometer
For postings on Ingenuity Working that contain code samples that use the magnetometer see:
community.psion.com/tags/compass/codeDG
22.4.3 Magnetometer API Elements
C: Magnetometer hardware on all computers with an magnetometer is read, using the
DeviceOrientation group.
.NET: Magnetometer hardware on all computers with an accelerometer is read, using the
PsionTeklogix.Sensors.DeviceOrientation class.
22.5 Light Sensor
The light sensor measures the intensity of the light falling on the face of a Psion computer.
The following Psion computers have a light sensor:
•EP10 (7515)
Default sampling rate
This is set to ~10 Hz.
Mobile Devices SDK
The Mobile Devices SDK provides APIs that enable an application to make a single reading of the light
sensor output, or to register a callback for repeated readings.
The Mobile Devices SDK provides APIs that enable an application to control the keyboard backlight and the
display backlight based on the output of the light sensor.
22.5.1 Getting Started with the Light Sensor
For articles on Ingenuity Working that will guide you in getting started with the light sensor see
the following:
community.psion.com/tags/light sensor/noteDG
22.5.2 Code Samples for the Light Sensor
For postings on Ingenuity Working that contain code samples that use the light sensor see:
community.psion.com/tags/light sensor/codeDG
22.5.3 Light Sensor API Elements
C: Light sensor hardware on all computers with a light sensor is read, using the AmbientLight group.
C: The keyboard backlight and the display backlight on all computers with a light sensor is controlled using
the Backlight group.
.NET: Light sensor hardware on all computers with an accelerometer is read, using the
PsionTeklogix.Sensors.LightSensor class.
.NET: The keyboard backlight and the display backlight on all computers with a light sensor is controlled
using the PsionTeklogix.Backlight.BacklightSettings class.
22.6 Proximity Sensor
The proximity sensor detects an object that is close to the face of the Psion computer.
The following Psion computers have an proximity sensor:
•EP10 (7515)
Default sampling rate
This is set to ~10 Hz.
Comentarios a estos manuales