Tutorial for first mbed project

Dependencies:   mbed lib_workshop_2019

Revision:
0:0a75a79d6b77
Child:
1:7a8764e627b5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/includes/pin_connexions.h	Wed Oct 23 12:16:18 2019 +0000
@@ -0,0 +1,44 @@
+#define BOUSSOLE_adress     0xC0
+#define PIXY_adress         0x54
+
+#define CC_BLOCSIZE         14
+#define N_BLOCSIZE          12
+
+#define N_BLOCCODE          0xAA55
+#define CC_BLOCCODE         0xAA56
+
+
+typedef unsigned char   Byte;
+typedef unsigned short  Word;
+typedef unsigned long   lWord;
+
+Serial      Pc      (PA_2, PA_3, 115200);
+
+/****************************************/
+/**         CNY declarations           **/
+/*          To be completed             */ 
+
+AnalogIn    CNY1    (PA_7);
+AnalogIn    CNY2    (PC_2);
+AnalogIn    CNY3    (PC_3);
+
+/**     End of CNY declaration         **/
+/****************************************/
+
+
+/****************************************/
+/**     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);
+
+PwmOut      Pwm_MG  (PA_9);
+PwmOut      Pwm_MD  (PA_8);
+
+/**  End of Motor by PWM declarations  **/
+/****************************************/
+
+