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:
- 4:a61068858bcf
- Parent:
- 3:013492d1db6d
--- a/main.cpp Tue Mar 31 13:13:17 2015 +0000 +++ b/main.cpp Tue Mar 31 14:09:58 2015 +0000 @@ -2,7 +2,7 @@ Serial pc(USBTX, USBRX); InterruptIn entree1(D9); -DigitalOut sortie1(A0); +PwmOut sortie1(A0); DigitalOut sortie2(A1); int cran=0; @@ -20,15 +20,15 @@ while(cran<=nb_cran_max) { - sortie1 = 1; - sortie2 = 0; + sortie1 = 0.1; + sortie2 = !sortie1; } sortie1 = 0; sortie2 = 0; } -void main() +int main(void) { entree1.rise(&frontMontant1); pc.printf("Start \n\r");