Teacher version

Dependencies:   mbed lib_workshop_2019

Revision:
1:7a8764e627b5
Parent:
0:0a75a79d6b77
Child:
5:d99659a45cab
--- a/includes/pin_connexions.h	Wed Oct 23 12:16:18 2019 +0000
+++ b/includes/pin_connexions.h	Wed Oct 23 13:01:35 2019 +0000
@@ -1,4 +1,10 @@
-#define BOUSSOLE_adress     0xC0
+#ifndef PINCONNEXIONS_H
+#define PINCONNEXIONS_H
+
+#include "VMA306.h"
+#include "CMPS03.h"
+
+#define COMPASS_adress     0xC0
 #define PIXY_adress         0x54
 
 #define CC_BLOCSIZE         14
@@ -30,15 +36,21 @@
 /**     Motor by PWM declarations       **/
 /*          To be completed             */ 
 
-DigitalOut  DIR_1G    (PC_9);
-DigitalOut  DIR_2G    (PC_8);
-DigitalOut  DIR_1D    (PC_6);
-DigitalOut  DIR_2D    (PC_5);
+DigitalOut  DIR_1G      (PC_9);
+DigitalOut  DIR_2G      (PC_8);
+DigitalOut  DIR_1D      (PC_6);
+DigitalOut  DIR_2D      (PC_5);
 
-PwmOut      Pwm_MG  (PA_9);
-PwmOut      Pwm_MD  (PA_8);
+PwmOut      Pwm_MG      (PA_9);
+PwmOut      Pwm_MD      (PA_8);
 
 /**  End of Motor by PWM declarations  **/
 /****************************************/
 
+/* Proximity sensors */
+VMA306      ultra_sonic       (PB_13, PB_2, PB_14, PC_7, PB_15, PA_6);
 
+/* Compass sensor */
+CMPS03      compass           (PC_4);
+
+#endif /* PINCONNEXIONS_H */