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
Fork of circle_war_ver_A_NUCLEO by
Diff: transfer.h
- Revision:
- 8:554e3d643b2d
- Parent:
- 2:bed6b204e64c
--- a/transfer.h Fri Apr 01 06:15:24 2016 +0000
+++ b/transfer.h Sun Apr 03 18:30:55 2016 +0000
@@ -8,8 +8,10 @@
#endif
void transfer(){
- push.mode(PullUp);
- if(push.read()==0) pushed_number=!pushed_number;
+ if(push.read()==0){
+ pushed_number=!pushed_number;
+ wait(0.5);
+ }
}
