summaryrefslogtreecommitdiff
path: root/n/es-2006/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/es-2006/src/main.c')
-rw-r--r--n/es-2006/src/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/n/es-2006/src/main.c b/n/es-2006/src/main.c
index b69c861..07a4a28 100644
--- a/n/es-2006/src/main.c
+++ b/n/es-2006/src/main.c
@@ -62,10 +62,21 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
sensor_rvb_stat_enable[compt] = sensor_rvb_stats[compt] =
args[2];
break;
+ /* Set threshold for the differents colors */
+ case c ('s', 9):
+ sensor_rvb_set_threshold
+ (args[0], v8_to_v16 (args[1], args[2]),
+ v8_to_v16 (args[3], args[4]), v8_to_v16 (args[5], args[6]),
+ v8_to_v16 (args[7], args[8]));
+ break;
/* RVB sensors configuration */
case c ('R', 3):
sensor_rvb_config (args[0], args[1], args[2]);
break;
+ /* Set current color as reference */
+ case c ('r', 0):
+ sensor_rvb_set_ref_color ();
+ break;
/* color mode game */
case c ('c', 0 ):
proto_send1b('c', others_selectcoul());