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/main.cpp
- Revision:
- 45:bd8da8d90dbb
- Parent:
- 44:741ee27c8a34
- Child:
- 47:d10bf65cb7dc
--- a/src/main.cpp Sat Mar 09 22:32:40 2019 +0000 +++ b/src/main.cpp Sun Mar 10 17:56:52 2019 +0000 @@ -78,6 +78,21 @@ dofFlip = TRUE; } +void fastFlip(unsigned short numFast){ + if(numFast >= 1){ec0 = ~ec0;} + if(numFast >= 2){ec1 = ~ec1;} + ... + if(numFast >= 36){ec35 = ~ec35;} +} + +void slowFlip(unsigned short numFast){ + numSlow = MAX_CHIPS - numFast; + if( numSlow >= 36){ec35 = ~ec35;}else{return;} + if( numSlow >= 35){ec34 = ~ec34;}else{return;} + ... + if( numSlow >= 1){ec0 = ~ec0;} +} + int main() {