![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tutorial for first mbed project
Dependencies: mbed lib_workshop_2019
includes/pin_connexions.h@6:9e03c9ae243b, 2019-10-24 (annotated)
- Committer:
- gvaquette
- Date:
- Thu Oct 24 04:14:47 2019 +0000
- Revision:
- 6:9e03c9ae243b
- Parent:
- 5:d99659a45cab
- Child:
- 8:c2d06715025f
Blank in main.cpp and pin_connexion.h
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 | 0:0a75a79d6b77 | 27 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 28 | /** CNY declarations **/ |
gvaquette | 0:0a75a79d6b77 | 29 | /* To be completed */ |
gvaquette | 6:9e03c9ae243b | 30 | // Declare your CNY70 here |
gvaquette | 0:0a75a79d6b77 | 31 | |
gvaquette | 6:9e03c9ae243b | 32 | |
gvaquette | 6:9e03c9ae243b | 33 | |
gvaquette | 0:0a75a79d6b77 | 34 | |
gvaquette | 0:0a75a79d6b77 | 35 | /** End of CNY declaration **/ |
gvaquette | 0:0a75a79d6b77 | 36 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 37 | |
gvaquette | 0:0a75a79d6b77 | 38 | |
gvaquette | 0:0a75a79d6b77 | 39 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 40 | /** Motor by PWM declarations **/ |
gvaquette | 0:0a75a79d6b77 | 41 | /* To be completed */ |
gvaquette | 0:0a75a79d6b77 | 42 | |
gvaquette | 6:9e03c9ae243b | 43 | |
gvaquette | 6:9e03c9ae243b | 44 | |
gvaquette | 6:9e03c9ae243b | 45 | |
gvaquette | 0:0a75a79d6b77 | 46 | |
gvaquette | 6:9e03c9ae243b | 47 | |
gvaquette | 6:9e03c9ae243b | 48 | |
gvaquette | 6:9e03c9ae243b | 49 | |
gvaquette | 0:0a75a79d6b77 | 50 | |
gvaquette | 0:0a75a79d6b77 | 51 | /** End of Motor by PWM declarations **/ |
gvaquette | 0:0a75a79d6b77 | 52 | /****************************************/ |
gvaquette | 0:0a75a79d6b77 | 53 | |
gvaquette | 1:7a8764e627b5 | 54 | /* Proximity sensors */ |
gvaquette | 1:7a8764e627b5 | 55 | VMA306 ultra_sonic (PB_13, PB_2, PB_14, PC_7, PB_15, PA_6); |
gvaquette | 0:0a75a79d6b77 | 56 | |
gvaquette | 1:7a8764e627b5 | 57 | /* Compass sensor */ |
gvaquette | 1:7a8764e627b5 | 58 | CMPS03 compass (PC_4); |
gvaquette | 1:7a8764e627b5 | 59 | |
gvaquette | 1:7a8764e627b5 | 60 | #endif /* PINCONNEXIONS_H */ |