Guide

28
E20
Command not exist
E21
Parameter error
E22
Address out of range
E23
Command buffer full
E24
Power unconnected
E25
Operation failure
Grove modules
Grove
No.
Module
Commands
Description
Support
Ports
Return
1
Chainable RGB
LED
#n M2304 P3\n
Deinit
3, 4, 5
$n ok\n
#n M2305 P3 N1 V2\n
Init Module 1 in Port 3. V is
the number of LEDs
chained.
3, 4, 5
$n ok\n or E25 init
fail
#n M2307 P3 V0 R228
G128 B100\n
Set the color of 0
th
LED
3, 4, 5
$n ok\n
2
Button
#n M2304 P3\n
Deinit
3, 4, 5
#n M2305 P3 N2\n
Init Module 2 in Port 3
3, 4, 5
Press down
@11 P3 N2 V0\n
Click
@11 P3 N2 V1\n
Long pressed
@11 P3 N2 V2\n
3
Slide
Potentiometer
#n M2304 P1\n
Deinit
1, 2
$n ok \n
#n M2305 P1 N3\n
Init Module 3 in Port1
1, 2
$n ok \n
#n M2306 P1 V1000\n
Set report interval (ms)
1, 2
@11 P1 N3 V583\n
4
Vibration Motor
#n M2304 P3\n
Deinit
3, 4, 5,
8, 9
$n ok \n
#n M2305 P3 N4\n
Init Module 4 in Port 3
3, 4, 5,
8, 9
$n ok \n
#n M2307 P3 V1\n
V1: turn on; V0: turn off
3, 4, 5,
8, 9
$n ok \n
5
Light Sensor
#n M2304 P1\n
Deinit
1, 2, 13
$n ok \n
#n M2305 P1 N5\n
Init Module 5 in Port 1
1, 2, 13
$n ok \n
#n M2306 P1 V1000\n
Set report interval (ms)
1, 2, 13
@11 P1 N5 V583\n