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:
- 1:86d25c1c4bd5
- Child:
- 2:bed6b204e64c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/transfer.h Fri Mar 25 03:08:41 2016 +0000 @@ -0,0 +1,15 @@ +#ifndef TRANSFER_H +#define TRANSFER_H + +DigitalIn push(PA_12); +bool pushed_number=0; +void transfer(); + +#endif + +void transfer(){ + push.mode(pullup); + if(push.read()==0) pushed_number=!pushed_nuber; + } + +