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
count.h@0:764148148257, 2018-12-01 (annotated)
- Committer:
- isshikiyuya
- Date:
- Sat Dec 01 16:10:49 2018 +0000
- Revision:
- 0:764148148257
?new
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
isshikiyuya | 0:764148148257 | 1 | #include "mbed.h" |
isshikiyuya | 0:764148148257 | 2 | |
isshikiyuya | 0:764148148257 | 3 | /////////////////////////////////////// |
isshikiyuya | 0:764148148257 | 4 | int count1 = 0; |
isshikiyuya | 0:764148148257 | 5 | int count2 = 0; |
isshikiyuya | 0:764148148257 | 6 | int distance1 = 0; |
isshikiyuya | 0:764148148257 | 7 | int distance2 = 0; |
isshikiyuya | 0:764148148257 | 8 | int distance = 0; |
isshikiyuya | 0:764148148257 | 9 | |
isshikiyuya | 0:764148148257 | 10 | void flip1() { |
isshikiyuya | 0:764148148257 | 11 | count1++; |
isshikiyuya | 0:764148148257 | 12 | distance1++; |
isshikiyuya | 0:764148148257 | 13 | } |
isshikiyuya | 0:764148148257 | 14 | |
isshikiyuya | 0:764148148257 | 15 | void flip2() { |
isshikiyuya | 0:764148148257 | 16 | count2++; |
isshikiyuya | 0:764148148257 | 17 | distance2++; |
isshikiyuya | 0:764148148257 | 18 | } |