![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tutorial for first mbed project
Dependencies: mbed lib_workshop_2019
includes/pin_connexions.h@8:c2d06715025f, 2019-10-24 (annotated)
- Committer:
- gvaquette
- Date:
- Thu Oct 24 06:06:55 2019 +0000
- Revision:
- 8:c2d06715025f
- Parent:
- 6:9e03c9ae243b
- Child:
- 9:19255172362f
todo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gvaquette | 1:7a8764e627b5 | 1 | #ifndef PINCONNEXIONS_H |
gvaquette | 1:7a8764e627b5 | 2 | #define PINCONNEXIONS_H |
gvaquette | 1:7a8764e627b5 | 3 | |
gvaquette | 1:7a8764e627b5 | 4 | #include "VMA306.h" |
gvaquette | 1:7a8764e627b5 | 5 | #include "CMPS03.h" |
gvaquette | 1:7a8764e627b5 | 6 | |
gvaquette | 1:7a8764e627b5 | 7 | #define COMPASS_adress 0xC0 |
gvaquette | 0:0a75a79d6b77 | 8 | #define PIXY_adress 0x54 |
gvaquette | 0:0a75a79d6b77 | 9 | |
gvaquette | 0:0a75a79d6b77 | 10 | #define CC_BLOCSIZE 14 |
gvaquette | 0:0a75a79d6b77 | 11 | #define N_BLOCSIZE 12 |
gvaquette | 0:0a75a79d6b77 | 12 | |
gvaquette | 0:0a75a79d6b77 | 13 | #define N_BLOCCODE 0xAA55 |
gvaquette | 0:0a75a79d6b77 | 14 | #define CC_BLOCCODE 0xAA56 |
gvaquette | 0:0a75a79d6b77 | 15 | |
gvaquette | 0:0a75a79d6b77 | 16 | |
gvaquette | 0:0a75a79d6b77 | 17 | typedef unsigned char Byte; |
gvaquette | 0:0a75a79d6b77 | 18 | typedef unsigned short Word; |
gvaquette | 0:0a75a79d6b77 | 19 | typedef unsigned long lWord; |
gvaquette | 0:0a75a79d6b77 | 20 | |
gvaquette | 5:d99659a45cab | 21 | |
gvaquette | 5:d99659a45cab | 22 | /****************************************/ |
gvaquette | 5:d99659a45cab | 23 | /* TO DO 1 : Declare the Serial connexion */ |
gvaquette | 5:d99659a45cab | 24 | /****************************************/ |
gvaquette | 6:9e03c9ae243b | 25 | // Place your Serial declaration here |
gvaquette | 0:0a75a79d6b77 | 26 | |
gvaquette | 8:c2d06715025f | 27 | |
gvaquette | 8:c2d06715025f | 28 | |
gvaquette | 8:c2d06715025f | 29 | |
gvaquette | 0:0a75a79d6b77 | 30 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 31 | /** CNY declarations **/ |
gvaquette | 0:0a75a79d6b77 | 32 | /* To be completed */ |
gvaquette | 6:9e03c9ae243b | 33 | // Declare your CNY70 here |
gvaquette | 0:0a75a79d6b77 | 34 | |
gvaquette | 6:9e03c9ae243b | 35 | |
gvaquette | 6:9e03c9ae243b | 36 | |
gvaquette | 0:0a75a79d6b77 | 37 | |
gvaquette | 0:0a75a79d6b77 | 38 | /** End of CNY declaration **/ |
gvaquette | 0:0a75a79d6b77 | 39 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 40 | |
gvaquette | 0:0a75a79d6b77 | 41 | |
gvaquette | 0:0a75a79d6b77 | 42 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 43 | /** Motor by PWM declarations **/ |
gvaquette | 0:0a75a79d6b77 | 44 | /* To be completed */ |
gvaquette | 0:0a75a79d6b77 | 45 | |
gvaquette | 6:9e03c9ae243b | 46 | |
gvaquette | 6:9e03c9ae243b | 47 | |
gvaquette | 6:9e03c9ae243b | 48 | |
gvaquette | 0:0a75a79d6b77 | 49 | |
gvaquette | 6:9e03c9ae243b | 50 | |
gvaquette | 6:9e03c9ae243b | 51 | |
gvaquette | 6:9e03c9ae243b | 52 | |
gvaquette | 0:0a75a79d6b77 | 53 | |
gvaquette | 0:0a75a79d6b77 | 54 | /** End of Motor by PWM declarations **/ |
gvaquette | 0:0a75a79d6b77 | 55 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 56 | |
gvaquette | 1:7a8764e627b5 | 57 | /* Proximity sensors */ |
gvaquette | 1:7a8764e627b5 | 58 | VMA306 ultra_sonic (PB_13, PB_2, PB_14, PC_7, PB_15, PA_6); |
gvaquette | 0:0a75a79d6b77 | 59 | |
gvaquette | 1:7a8764e627b5 | 60 | /* Compass sensor */ |
gvaquette | 1:7a8764e627b5 | 61 | CMPS03 compass (PC_4); |
gvaquette | 1:7a8764e627b5 | 62 | |
gvaquette | 1:7a8764e627b5 | 63 | #endif /* PINCONNEXIONS_H */ |