User manual
52 / 56
Air Quality
Sensor
#n M2305 P1 N7\n
Init Module 7 in Port 1
1, 2
$n ok \n
#n M2306 P1 V1000\n
Set report interval (ms)
1, 2
@11 P1 N7 V583\n
8
Sound Sensor
#n M2304 P1\n
Deinit
1, 2
$n ok \n
#n M2305 P1 N8\n
Init Module 8 in Port 1
1, 2
$n ok \n
#n M2306 P1 V1000\n
Set report interval (ms)
1, 2
@11 P1 N8 V583\n
9
6-Axis
Accelerometer &
Compass
#n M2304 P0\n
Deinit
0
$n ok \n
#n M2305 P0 N9\n
Init Module 9 in Port 0
0
$n ok \n
#n M2306 P0 V1000\n
Set report interval (ms)
XYZ is the acceleration of
each axis.
H is the clockwise angle
between the magnetic north
and x-axis
T is the clockwise angle
between the magnetic north
and the projection
of the positive x-axis in the
horizontal plane
0
@11 P0 N9 X2.0
Y2.0 Z2.0 H2.0
T2.0\n
10
Color Sensor
#n M2304 P0\n
Deinit
0
$n ok \n
#n M2305 P0 N10\n
Init Module 10 in Port 0
0
$n ok \n
#n M2306 P0 V1000\n
Set report interval (ms)
0
@11 P0 N10 R218
G31 B128\n
11
Gesture Sensor
#n M2304 P0\n
Deinit
0
$n ok \n
#n M2305 P0 N11\n
Init Module 11 in Port 0
0
$n ok \n
#n M2306 P0 V1000\n
Set report interval (ms)
0
@11 P0 N11 V1\n
1: right
2: left
4: up
8: down
16: forward
32: backward
64: clockwise
128:counter
clockwise
12
Ultrasonic
#n M2304 P3\n
Deinit
4, 8, 9
$n ok \n