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 line-trace2
Diff: count.h
- Revision:
- 0:764148148257
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/count.h Sat Dec 01 16:10:49 2018 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" + +/////////////////////////////////////// +int count1 = 0; +int count2 = 0; +int distance1 = 0; +int distance2 = 0; +int distance = 0; + +void flip1() { + count1++; + distance1++; +} + +void flip2() { + count2++; + distance2++; +}