1
1
import com.onlylemi.processing.android.capture.* ;
2
2
3
- PAndroidSensor as;
3
+ AndroidSensor as;
4
4
5
5
void setup () {
6
6
size (720 , 480 );
7
7
8
8
background (0 );
9
9
10
- as = new PAndroidSensor (0 );
10
+ as = new AndroidSensor (0 );
11
11
as. start();
12
12
}
13
13
@@ -17,35 +17,35 @@ void draw() {
17
17
18
18
textSize (15 );
19
19
20
- text (PSensorType . TYPE_ACCELEROMETER + " : " , 60 , 50 );
20
+ text (SensorType . TYPE_ACCELEROMETER + " : " , 60 , 50 );
21
21
text (" X : " + as. getAccelerometerSensorValues()[0 ], 250 , 50 );
22
22
text (" Y : " + as. getAccelerometerSensorValues()[1 ], 400 , 50 );
23
23
text (" Z : " + as. getAccelerometerSensorValues()[2 ], 550 , 50 );
24
24
25
- text (PSensorType . TYPE_ORIENTATION + " : " , 60 , 100 );
25
+ text (SensorType . TYPE_ORIENTATION + " : " , 60 , 100 );
26
26
text (" X : " + as. getOrientationSensorValues()[0 ], 250 , 100 );
27
27
text (" Y : " + as. getOrientationSensorValues()[1 ], 400 , 100 );
28
28
text (" Z : " + as. getOrientationSensorValues()[2 ], 550 , 100 );
29
29
30
- text (PSensorType . TYPE_MAGNETIC_FIELD + " : " , 60 , 150 );
30
+ text (SensorType . TYPE_MAGNETIC_FIELD + " : " , 60 , 150 );
31
31
text (" X : " + as. getMagneticFieldSensorValues()[0 ], 250 , 150 );
32
32
text (" Y : " + as. getMagneticFieldSensorValues()[1 ], 400 , 150 );
33
33
text (" Z : " + as. getMagneticFieldSensorValues()[2 ], 550 , 150 );
34
34
35
- text (PSensorType . TYPE_GYROSCOPE + " : " , 60 , 200 );
35
+ text (SensorType . TYPE_GYROSCOPE + " : " , 60 , 200 );
36
36
text (" X : " + as. getGyroscopeSensorValues()[0 ], 250 , 200 );
37
37
text (" Y : " + as. getGyroscopeSensorValues()[1 ], 400 , 200 );
38
38
text (" Z : " + as. getGyroscopeSensorValues()[2 ], 550 , 200 );
39
39
40
- text (PSensorType . TYPE_LIGHT + " : " , 60 , 250 );
41
- text (" level : " + as. getLightSensorValues(), 250 , 250 );
40
+ text (SensorType . TYPE_LIGHT + " : " , 60 , 250 );
41
+ text (" leSensorTypevel : " + as. getLightSensorValues(), 250 , 250 );
42
42
43
- text (PSensorType . TYPE_PROXIMITY + " : " , 60 , 300 );
43
+ text (SensorType . TYPE_PROXIMITY + " : " , 60 , 300 );
44
44
text (" distance : " + as. getProximitySensorValues(), 250 , 300 );
45
45
46
- text (PSensorType . TYPE_PRESSURE + " : " , 60 , 350 );
46
+ text (SensorType . TYPE_PRESSURE + " : " , 60 , 350 );
47
47
text (" pressure : " + as. getPressureSensorValues(), 250 , 350 );
48
48
49
- text (PSensorType . TYPE_TEMPERATURE + " : " , 60 , 400 );
49
+ text (SensorType . TYPE_TEMPERATURE + " : " , 60 , 400 );
50
50
text (" temperature : " + as. getTemperatureSensorValues(), 250 , 400 );
51
51
}
0 commit comments