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
Diff: main.cpp
- Revision:
- 2:e443871f42f2
- Parent:
- 1:7f8b8f2bc12f
- Child:
- 3:013492d1db6d
diff -r 7f8b8f2bc12f -r e443871f42f2 main.cpp --- a/main.cpp Tue Mar 31 12:51:04 2015 +0000 +++ b/main.cpp Tue Mar 31 13:00:34 2015 +0000 @@ -1,14 +1,18 @@ #include "mbed.h" +Serial pc(USBTX, USBRX); InterruptIn entree1(D9); DigitalOut sortie1(A0); DigitalOut sortie2(A1); int cran=0; +sortie1 = 0; +sortie2 = 0; void frontMontant1() { cran++; + pc.printf("cran: %f \n\r",cran); } void avancer(int distance_mm) @@ -22,11 +26,14 @@ sortie2 = 0; } + sortie1 = 0; + sortie2 = 0; } void main() { entree1.rise(&frontMontant1); + pc.printf("Start \n\r"); avancer(350); while(1) {