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.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/n/es-2006/src/main.c b/n/es-2006/src/main.c
index 8edfb78..c65fd55 100644
--- a/n/es-2006/src/main.c
+++ b/n/es-2006/src/main.c
@@ -35,7 +35,9 @@
#include "sniff_rvb.h" /* RVB sensors analysis */
#include "timer_1.h" /* timer/counter 1 */
#include "others.h" /* define game color mode + jack + frontal sensor */
+#include "sensor_eeprom.c"
#include "barillet.h"
+#include "servo_motor.h"
/* Statistics for RVB sensors */
@@ -103,6 +105,18 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
case c ('c', 0 ):
proto_send1b('c', others_selectcoul());
break;
+ /* Load sniff values from eeprom */
+ case c ('l', 0):
+ sensor_eeprom_read_params ();
+ break;
+ /* saVe sniff values from eeprom */
+ case c ('v', 0):
+ sensor_eeprom_write_params ();
+ break;
+ /* Communication with the servo motor */
+ case c ('m', 2):
+ servo_motor_set_pos (args[0], args[1]);
+ break;
// /* contact */
// case c ('TTTTTTTTTTt', 0 ):
// proto_send1b('t', others_contact());
@@ -175,6 +189,8 @@ main (void)
others_init();
/* barillet init */
barillet_init();
+ /* Servo motor init */
+ servo_motor_init ();
/* Enable interrupts */
sei ();