![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tutorial for first mbed project
Dependencies: mbed lib_workshop_2019
Diff: includes/pin_connexions.h
- Revision:
- 6:9e03c9ae243b
- Parent:
- 5:d99659a45cab
- Child:
- 8:c2d06715025f
--- a/includes/pin_connexions.h Thu Oct 24 03:54:20 2019 +0000 +++ b/includes/pin_connexions.h Thu Oct 24 04:14:47 2019 +0000 @@ -22,15 +22,15 @@ /****************************************/ /* TO DO 1 : Declare the Serial connexion */ /****************************************/ -Serial Pc (PA_2, PA_3, 115200); +// Place your Serial declaration here /****************************************/ /** CNY declarations **/ /* To be completed */ +// Declare your CNY70 here -AnalogIn CNY1 (PA_7); -AnalogIn CNY2 (PC_2); -AnalogIn CNY3 (PC_3); + + /** End of CNY declaration **/ /****************************************/ @@ -40,13 +40,13 @@ /** Motor by PWM declarations **/ /* To be completed */ -DigitalOut DIR_1L (PC_9); -DigitalOut DIR_2L (PC_8); -DigitalOut DIR_1R (PC_6); -DigitalOut DIR_2R (PC_5); + + + -PwmOut Pwm_ML (PA_9); -PwmOut Pwm_MR (PA_8); + + + /** End of Motor by PWM declarations **/ /****************************************/