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
Diff: src/clocks.cpp
- Revision:
- 1:bc3509459a27
- Parent:
- 0:b3410a1e9843
--- a/src/clocks.cpp Thu Jan 27 21:58:14 2022 +0000 +++ b/src/clocks.cpp Tue Dec 06 18:47:01 2022 +0000 @@ -30,6 +30,7 @@ #include "all_io.h" //#include "menu.h" unsigned short i; +unsigned int numOn; int enkey[6] = {2, 1, 1, 1, 1, 1}; @@ -54,9 +55,10 @@ en8 = 1; en16 = 1; en32 = 1;*/ - for(i = 0; i < 6; i++){ + for(i = 0; i < 5; i++){ en[i] = 1; } + en[5] = 0; } /* void flipSlow(void){ @@ -142,9 +144,11 @@ } void setClocks(int num){ + numOn = num; if (num == 32 or enable == TRUE){ en[5] = 1; } else { + en[5] = 0; if (num >= 16) { en[4] = 1; num = num - 16; @@ -175,4 +179,7 @@ en[0] = 0; } } + WR = 1; + wait_us(250); + WR = 0; }