Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed lib_workshop_2019
pin_connexions.h
00001 #ifndef PINCONNEXIONS_H 00002 #define PINCONNEXIONS_H 00003 00004 #include "VMA306.h" 00005 #include "CMPS03.h" 00006 00007 #define COMPASS_adress 0xC0 00008 #define PIXY_adress 0x54 00009 00010 #define CC_BLOCSIZE 14 00011 #define N_BLOCSIZE 12 00012 00013 #define N_BLOCCODE 0xAA55 00014 #define CC_BLOCCODE 0xAA56 00015 00016 00017 typedef unsigned char Byte; 00018 typedef unsigned short Word; 00019 typedef unsigned long lWord; 00020 00021 00022 /****************************************/ 00023 /* TO DO 1 : Declare the Serial connexion */ 00024 /****************************************/ 00025 Serial Pc (PA_2, PA_3, 115200); 00026 00027 /****************************************/ 00028 /** CNY declarations **/ 00029 /* To be completed */ 00030 00031 AnalogIn CNY1 (PA_7); 00032 AnalogIn CNY2 (PC_2); 00033 AnalogIn CNY3 (PC_3); 00034 00035 /** End of CNY declaration **/ 00036 /****************************************/ 00037 00038 00039 /****************************************/ 00040 /** Motor by PWM declarations **/ 00041 /* To be completed */ 00042 00043 DigitalOut DIR_1L (PC_9); 00044 DigitalOut DIR_2L (PC_8); 00045 DigitalOut DIR_1R (PC_6); 00046 DigitalOut DIR_2R (PC_5); 00047 00048 PwmOut Pwm_ML (PA_9); 00049 PwmOut Pwm_MR (PA_8); 00050 00051 /** End of Motor by PWM declarations **/ 00052 /****************************************/ 00053 00054 /* Proximity sensors */ 00055 VMA306 ultra_sonic (PB_13, PB_2, PB_14, PC_7, PB_15, PA_6); 00056 00057 /* Compass sensor */ 00058 CMPS03 compass (PC_4); 00059 00060 #endif /* PINCONNEXIONS_H */
Generated on Sat Jul 16 2022 06:19:30 by
