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 HC_SR04_Ultrasonic_Library
Revision 1:a3252d40950a, committed 2019-05-13
- Comitter:
- lolo2
- Date:
- Mon May 13 12:07:23 2019 +0000
- Parent:
- 0:0d8dc8af4ee2
- Commit message:
- PROGRAMME MOUVEMENT
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Feb 12 10:35:14 2019 +0000 +++ b/main.cpp Mon May 13 12:07:23 2019 +0000 @@ -10,7 +10,7 @@ else printf("pas presence\r\n", distance); // affiche un message pas presence quand il y a une distance = à 1mm et >1000mm } -ultrasonic mu(D8, D9, .2, 1, &dist); //trigger sur pin D8 et echo sur D8 +ultrasonic mu(D7, D6, .2, 1, &dist); //trigger sur pin D8 et echo sur D9 //donnée toute les 0.1 seconde avec un temps de sortie de 1 //seconde, et appelle la distance quand elle change