User Tools

Site Tools


built_in:sensors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:sensors [2014/09/17 19:18]
stevegarman created
built_in:sensors [2018/01/03 10:23]
Line 1: Line 1:
-====== Sensor control ====== 
-===== Create ===== 
-Create Sensor objects using the CreateSensor function of the app object: 
-<code>sns = app.CreateSensor( type, options );</code> 
-Types available are: "Accelerometer", "MagneticField", "Orientation", "Light" and "Proximity". 
  
-You can use the SetOnChange function of the Sensor to set the name of a function you want to be called when a the changes occur. 
- 
-Change the rate that a sensor checks for changes by adding one the options "Fastest", "Fast", "Medium" or "Slow". "Slow" is the default. 
-===== Methods ===== 
-^Method ^Description ^ 
-|sns.GetAzimuth| | 
-|sns.GetHeight| | 
-|sns.GetPitch| | 
-|sns.GetRoll| | 
-|sns.GetVisibility| | 
-|sns.GetWidth| | 
-|sns.Release| | 
-|sns.SetBackColor| | 
-|sns.SetBackGradient| | 
-|sns.SetBackGradientRadial| | 
-|sns.SetBackground| | 
-|sns.SetMargins| | 
-|sns.SetMinChange| | 
-|sns.SetOnChange| | 
-|sns.SetPadding| | 
-|sns.SetPosition| | 
-|sns.SetSize| | 
-|sns.SetVisibility| | 
-|sns.Start| | 
-|sns.Stop| | 
built_in/sensors.txt ยท Last modified: 2018/01/03 10:23 (external edit)