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.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/n/es-2006/src/main.c b/n/es-2006/src/main.c
index 314df6a..44c0c30 100644
--- a/n/es-2006/src/main.c
+++ b/n/es-2006/src/main.c
@@ -35,6 +35,7 @@
#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 "barillet.h"
/* Statistics for RVB sensors */
@@ -103,7 +104,7 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
proto_send1b('c', others_selectcoul());
break;
// /* contact */
-// case c ('t', 0 ):
+// case c ('TTTTTTTTTTt', 0 ):
// proto_send1b('t', others_contact());
// break;
//
@@ -111,7 +112,25 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
// case c ('j', 0 ):
// proto_send1b('j', others_jack());
// break;
+
+ /* deposer une balle dans le barillet */
+ case c ('d', 0):
+ depose = 1;
+ break;
+
+ /* extraire une balle */
+ case c ('e', 0):
+ extraction = 1;
+ break;
+
+ /* rotation du barillet */
+ case c ('t', 1):
+ rotation = 1;
+ pos_a_aller = args[0];
+ break;
+
+
/* Unknown commands */
default:
proto_send0 ('?');
@@ -138,6 +157,8 @@ main (void)
sensor_rvb_init ();
/* Init Color button init */
others_init();
+ /* barillet init */
+ barillet_init();
/* Enable interrupts */
sei ();