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:
- 2:1b8ea01637ad
- Parent:
- 1:ce89d84cafaa
diff -r ce89d84cafaa -r 1b8ea01637ad main.cpp
--- a/main.cpp Sun Sep 04 07:12:40 2016 +0000
+++ b/main.cpp Sun Sep 04 07:55:10 2016 +0000
@@ -7,7 +7,7 @@
DigitalOut zz(D12);
DigitalOut yy(D13);
-const int state[10][7]= {
+const int state[10][8]= {
{ 0, 1, 1, 1, 1, 1, 1}, // 0
{ 0, 0, 0, 0, 1, 1, 0}, // 1
{ 1, 0, 1, 1, 0, 1, 1}, // 2
@@ -71,16 +71,16 @@
{
seg1(round);
r++;
- if (r>=10)
+ if (r>=1)
{
round++;
r=0;
}
- wait_ms(5);
+ wait_ms(1);
seg2(round2);
- wait_ms(5);
+ wait_ms(1);
seg3(round3);
- wait_ms(5);
+ wait_ms(1);
if(round == 10)
{
round=0;round2++;