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:
- 5:df89be97e11a
- Parent:
- 2:bed6b204e64c
- Child:
- 6:bb86e2999be0
diff -r bed6b204e64c -r df89be97e11a main.cpp --- a/main.cpp Fri Mar 25 04:21:52 2016 +0000 +++ b/main.cpp Fri Apr 01 05:52:10 2016 +0000 @@ -2,16 +2,27 @@ #include "pin_file.h" #include "spi_nucleo.h" #include "transfer.h" +//#include "encoder.h" +//#include "speed_control.h" #include <string.h> +DigitalOut u(cil); int main(){ void transfer(); while(pushed_number==0){ - + u=0; + wait(1); + u=1; + wait(1); } while(pushed_number==1){ + u=0; + wait(1); + u=1; + wait(1); } } +