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.
Diff: main.cpp
- Revision:
- 1:ce89d84cafaa
- Parent:
- 0:05ed3adc34ad
- Child:
- 2:1b8ea01637ad
diff -r 05ed3adc34ad -r ce89d84cafaa main.cpp
--- a/main.cpp Fri Sep 02 06:31:07 2016 +0000
+++ b/main.cpp Sun Sep 04 07:12:40 2016 +0000
@@ -66,11 +66,16 @@
}
int main()
{
- int round=0,round2=0,round3=0;
+ int round=0,round2=0,round3=0,r=0;
while(1)
{
seg1(round);
- round++;
+ r++;
+ if (r>=10)
+ {
+ round++;
+ r=0;
+ }
wait_ms(5);
seg2(round2);
wait_ms(5);